Skip to content

Commit

Permalink
Added dummy implementation of code:is_module_native/1, which always r…
Browse files Browse the repository at this point in the history
…eturns false.
  • Loading branch information
jetztgradnet committed Jul 10, 2011
1 parent 9cc6ca9 commit b4e77ed
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/erjang/m/code/Native.java
Original file line number Diff line number Diff line change
@@ -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.