aboutsummaryrefslogtreecommitdiff
path: root/api/int.c
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 14:18:15 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 14:18:15 +0100
commitecc06c082036aa93f6810ec21e73610c55f5a57b (patch)
treeaff479c3bc5b39ead9f65dffb01d399b341fa4ba /api/int.c
downloaduwu-lang-ecc06c082036aa93f6810ec21e73610c55f5a57b.tar.xz
Initial commit
Diffstat (limited to 'api/int.c')
-rw-r--r--api/int.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/api/int.c b/api/int.c
new file mode 100644
index 0000000..aea8e26
--- /dev/null
+++ b/api/int.c
@@ -0,0 +1,11 @@
+#include "int.h"
+
+UwUVMValue uwuint_create(int value)
+{
+ return (UwUVMValue) {
+ .type = VT_INT,
+ .value = {
+ .int_value = value,
+ },
+ };
+}