Created
July 14, 2015 18:57
-
-
Save lpgauth/5580f87aaac40b9c1d53 to your computer and use it in GitHub Desktop.
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
-module(test). | |
-export([ | |
macro/0 | |
]). | |
-ifdef(TEST). | |
-define(IF_DEF_TEST, fun (A, _) -> A end). | |
-else. | |
-define(IF_DEF_TEST, fun (_, B) -> B end). | |
-endif. | |
macro() -> | |
?IF_DEF_TEST(0, 1). |
Author
lpgauth
commented
Jul 14, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment