diff options
Diffstat (limited to 'dimension/realize.c')
-rw-r--r-- | dimension/realize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dimension/realize.c b/dimension/realize.c index eda7056..5a13d8b 100644 --- a/dimension/realize.c +++ b/dimension/realize.c @@ -636,7 +636,8 @@ dmnsn_realize_string(const char *str, dmnsn_symbol_table *symtable) symtable = dmnsn_new_symbol_table(); } if (!dmnsn_find_symbol(symtable, "__file__")) { - dmnsn_push_symbol(symtable, "__file__", dmnsn_new_ast_string("<string>")); + dmnsn_declare_symbol(symtable, "__file__", + dmnsn_new_ast_string("<string>")); } FILE *file = fmemopen((void *)str, strlen(str), "r"); |