Update smlua_cobject_map.c (#336)

This commit is contained in:
John S 2024-09-23 00:20:40 -04:00 committed by GitHub
parent 9bb89067f2
commit 7a9d690305
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,14 +4,14 @@
static void* sPointers = NULL; static void* sPointers = NULL;
void smlua_pointer_user_data_init(void) {
smlua_pointer_user_data_shutdown();
}
void smlua_pointer_user_data_shutdown(void) { void smlua_pointer_user_data_shutdown(void) {
hmap_clear(sPointers); hmap_clear(sPointers);
} }
void smlua_pointer_user_data_init(void) {
smlua_pointer_user_data_shutdown();
}
void smlua_pointer_user_data_add(u64 pointer, CObject *obj) { void smlua_pointer_user_data_add(u64 pointer, CObject *obj) {
if (pointer == 0) { return; } if (pointer == 0) { return; }