aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorVexu <git@vexu.eu>2020-01-16 17:12:43 +0200
committerAndrew Kelley <andrew@ziglang.org>2020-01-16 13:13:45 -0500
commitdf03fcf5f07e0d5d16e5b837658265f6c468cbe4 (patch)
treeba012a63f4ca49632a8f74a8941b913e8a63c3e3 /src/codegen.cpp
parentf609ce4f6551d772dcb6480c573ccad7645056cb (diff)
downloadzig-df03fcf5f07e0d5d16e5b837658265f6c468cbe4.tar.gz
zig-df03fcf5f07e0d5d16e5b837658265f6c468cbe4.zip
implement `@bitSizeOf`
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 95b55675bb..cd009b3bea 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -8299,6 +8299,7 @@ static void define_builtin_fns(CodeGen *g) {
create_builtin_fn(g, BuiltinFnIdFrameSize, "frameSize", 1);
create_builtin_fn(g, BuiltinFnIdAs, "as", 2);
create_builtin_fn(g, BuiltinFnIdCall, "call", 3);
+ create_builtin_fn(g, BuiltinFnIdBitSizeof, "bitSizeOf", 1);
}
static const char *bool_to_str(bool b) {