aboutsummaryrefslogtreecommitdiff
path: root/stdlib/functiontype.h
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/functiontype.h')
-rw-r--r--stdlib/functiontype.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/stdlib/functiontype.h b/stdlib/functiontype.h
index 4dfef3b0..9252f5fc 100644
--- a/stdlib/functiontype.h
+++ b/stdlib/functiontype.h
@@ -1,15 +1,19 @@
#pragma once
#include <stdbool.h>
+#include <stdint.h>
#include "metamethods.h"
+#include "optionals.h"
#include "types.h"
#include "util.h"
// Logic for handling function type values
-void register_function(void *fn, Text_t name);
-Text_t *get_function_name(void *fn);
+void register_function(void *fn, Text_t filename, int64_t line_num, Text_t name);
+OptionalText_t get_function_name(void *fn);
+OptionalText_t get_function_filename(void *fn);
+int64_t get_function_line_num(void *fn);
Text_t Func$as_text(const void *fn, bool colorize, const TypeInfo_t *type);
PUREFUNC bool Func$is_none(const void *obj, const TypeInfo_t*);