prepare for function-call optimization

This commit is contained in:
ValKmjolnir
2022-02-12 18:03:50 +08:00
parent 3ca42d1fd9
commit c7909bfdf8
3 changed files with 57 additions and 45 deletions
+2
View File
@@ -401,6 +401,8 @@ void nasal_codegen::func_gen(const nasal_ast& ast)
for(auto& tmp:ast[0].child())
{
const std::string& str=tmp.str();
if(str=="me")
die("\"me\" should not be a parameter",tmp.line());
regist_string(str);
switch(tmp.type())
{