Marco Bambini пре 5 година
родитељ
комит
109756fb67
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      docs/extending.md

+ 1 - 0
docs/extending.md

@@ -15,6 +15,7 @@ In this simple example we'll create a "Foo" class with a "sum" method in C and t
 #include "gravity_vm.h"
 #include "gravity_vm.h"
 #include "gravity_vmmacros.h"
 #include "gravity_vmmacros.h"
 
 
+// notice the usage of the extern clause to tell compiler (the front-end) that the Foo object will be registered later by the back-end (the VM)
 const char *source_code = " \
 const char *source_code = " \
 extern var Foo; \
 extern var Foo; \
 func main () {   \
 func main () {   \