Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Last active December 29, 2015 02:29
Show Gist options
  • Save BitPuffin/7600940 to your computer and use it in GitHub Desktop.
Save BitPuffin/7600940 to your computer and use it in GitHub Desktop.
when not defined(backend):
import uri
echo "uri imported"
else:
import getDefinition("backend")
echo "other backend imported"
echo("end")
BernardOhlsson% nimrod c -d:backend=irc -r test.nim
/etc/nimrod.cfg(36, 2) Hint: added path: '/home/isak/.babel/pkgs/jester-0.1.0' [Path]
/etc/nimrod.cfg(36, 2) Hint: added path: '/home/isak/.babel/pkgs/' [Path]
Hint: used config file '/etc/nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
Hint: uri [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
gcc -o /home/isak/src/nim/deftest/test /home/isak/src/nim/deftest/nimcache/pure_parseutils.o /home/isak/src/nim/deftest/nimcache/pure_strutils.o /home/isak/src/nim/deftest/nimcache/pure_uri.o /home/isak/src/nim/deftest/nimcache/nimrod_system.o /home/isak/src/nim/deftest/nimcache/deftest_test.o -ldl
Hint: operation successful (9627 lines compiled; 0.252 sec total; 15.153MB) [SuccessX]
/home/isak/src/nim/deftest/test
uri imported
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment