浏览代码

Update extending.md

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_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 = " \
 extern var Foo; \
 func main () {   \