aboutsummaryrefslogtreecommitdiff
path: root/stdlib/functiontype.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-02-21 14:59:14 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-02-21 14:59:14 -0500
commit7a6abd4f8eca56a2bba7e7d0b8dfa3011586a89c (patch)
tree31ac3b4f7ff8de64d455e7a5c003ffa77ca448c8 /stdlib/functiontype.h
parentf8de9e4ae77e1b4d062caf10a3e354d4ef2e5213 (diff)
Tweak function registration API
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*);