mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-26 21:08:45 +08:00
⚡ optimize header file, now modules could generate smaller dynamic libs.
This commit is contained in:
+10
@@ -1,6 +1,9 @@
|
||||
#ifndef __NASAL_GC_H__
|
||||
#define __NASAL_GC_H__
|
||||
|
||||
#include <queue>
|
||||
#include <unordered_map>
|
||||
|
||||
enum vm_type:u8{
|
||||
/* none-gc object */
|
||||
vm_none=0,
|
||||
@@ -714,4 +717,11 @@ void nasal_gc::ctxreserve()
|
||||
stack=mctx.stack;
|
||||
cort=nullptr;
|
||||
}
|
||||
|
||||
// use to print error log and return error value
|
||||
nas_ref nas_err(const string& err_f,const string& info)
|
||||
{
|
||||
std::cerr<<"[vm] "<<err_f<<": "<<info<<"\n";
|
||||
return {vm_none};
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user