Procházet zdrojové kódy

Update bindings.md

blueloveTH před 2 roky
rodič
revize
3fe575b940
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      docs/bindings.md

+ 1 - 1
docs/bindings.md

@@ -153,7 +153,7 @@ struct wrapped__Point{
 int main(){
     VM* vm = new VM();
     // register the wrapper class in builtins
-    vm->register_user_class<wrapped__Point>(vm->builtins);
+    vm->register_user_class<wrapped__Point>(vm->builtins, "Point");
 
     // use the Point class
     vm->exec("a = Point(1, 2)");