forked from trifork/erjang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added dummy implementation of code:is_module_native/1, which always r…
…eturns false.
- Loading branch information
1 parent
9cc6ca9
commit b4e77ed
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |