aboutsummaryrefslogtreecommitdiff
path: root/libc/spec/spec.td
diff options
context:
space:
mode:
Diffstat (limited to 'libc/spec/spec.td')
-rw-r--r--libc/spec/spec.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/spec/spec.td b/libc/spec/spec.td
index 0b557c8..aebf495 100644
--- a/libc/spec/spec.td
+++ b/libc/spec/spec.td
@@ -176,6 +176,10 @@ class FunctionSpec<string name, RetValSpec return, list<ArgSpec> args> {
list<ArgSpec> Args = args;
}
+class GuardedFunctionSpec<string name, RetValSpec return, list<ArgSpec> args, string guard_macro> : FunctionSpec<name, return, args> {
+ string Guard = guard_macro;
+}
+
class ObjectSpec<string name, string type> {
string Name = name;
string Type = type;