diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-01-01 19:44:35 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-01-01 19:44:35 +0100 |
commit | 31cf3ac5ac7054890810190d6f526ec1eb38c64d (patch) | |
tree | 52970f6d6b4c7b402ce0da72a7d3d33dad7ebe94 /std/ref.c | |
parent | e031725c41c2970e5bc417f27b9abec79c5b72fb (diff) | |
download | uwu-lang-31cf3ac5ac7054890810190d6f526ec1eb38c64d.tar.xz |
Turn std into a submodule
Diffstat (limited to 'std/ref.c')
-rw-r--r-- | std/ref.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/std/ref.c b/std/ref.c deleted file mode 100644 index 0147160..0000000 --- a/std/ref.c +++ /dev/null @@ -1,20 +0,0 @@ -#include "common/err.h" -#include "api/ref.h" -#include "api/util.h" - -UwUVMValue uwu_call(UwUVMArgs *args) -{ - uwuutil_require_min("ref.call", args, 1); - - UwUVMValue value = uwuvm_get_arg(args, 0); - - if (value.type != &uwuref_type) - error("ref.call requires a function reference as $1\n"); - - return uwuvm_call_function(value.data, args->num - 1, &args->unevaluated[1], args->super); -} - -UwUVMValue uwu_is(UwUVMArgs *args) -{ - return uwuutil_is_type("ref.is", args, &uwuref_type); -} |