assyrianic / Tagha

Minimal, low-level, fast, and self-contained register-based bytecode virtual machine/runtime environment.
MIT License
124 stars 8 forks source link

Have C++ wrapper constructor add in Natives. #27

Closed assyrianic closed 6 years ago

assyrianic commented 6 years ago

something like...

    NativeInfo_ tagha_host_natives[] = {
        {"test", Native_Test},
        {"printHW", Native_PrintHelloWorld},
        {"getglobal", Native_TestGlobal},
        {nullptr, nullptr}
    };
   Tagha_ *tagha = new Tagha_(tagha_host_natives);