add trace back info

This commit is contained in:
Li Haokun
2021-07-16 17:18:13 +08:00
committed by GitHub
parent 5de65e584d
commit d9d7a1edfc
7 changed files with 147 additions and 121 deletions
+1 -5
View File
@@ -54,11 +54,7 @@ nasal_val* builtin_right(std::vector<nasal_val*>&,nasal_gc&);
nasal_val* builtin_cmp(std::vector<nasal_val*>&,nasal_gc&);
nasal_val* builtin_chr(std::vector<nasal_val*>&,nasal_gc&);
void builtin_err(const char* func_name,std::string info)
{
std::cout<<">> [vm] "<<func_name<<": "<<info<<".\n";
return;
}
#define builtin_err(func_name,info) std::cout<<">> [vm] "<<func_name<<": "<<info<<".\n"
// register builtin function's name and it's address here in this table below
// this table must end with {"",nullptr}