Permalink
Browse files

Added dummy implementation of code:is_module_native/1, which always r…

…eturns false.
  • Loading branch information...
1 parent 9cc6ca9 commit b4e77ed7079dc39f18c68c13272e3d5195673fc5 @jetztgradnet committed Jul 10, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 src/main/java/erjang/m/code/Native.java
@@ -0,0 +1,18 @@
+package erjang.m.code;
+
+import erjang.BIF;
+import erjang.ENative;
+import erjang.EObject;
+import erjang.ERT;
+
+public class Native extends ENative {
+ @BIF
+ public static EObject is_module_native(EObject module) {
+ // TODO determine whether module is native, e.g. by calling
+ // EModuleManager#get_module_info(EAtom) and adding a field native
+ // to EModuleManager.ModuleInfo
+ return ERT.FALSE;
+ //return ERT.TRUE;
+ //return ERT.am_undefined
+ }
+}

0 comments on commit b4e77ed

Please sign in to comment.