PageRenderTime 507ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/modula3/class/swig.tmpl

#
Go Template | 11 lines | 10 code | 1 blank | 0 comment | 0 complexity | eaeeb3303551080cb8ddbc188b794b95 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. readonly proc cxx_source (X) is
  2. local cxxfile = X&".cxx"
  3. local objfile = X&".o"
  4. %exec("echo $PWD")
  5. if stale(objfile,cxxfile)
  6. exec("cd",path(),"; g++ -I.. -c -o",objfile,cxxfile)
  7. end
  8. import_obj(X)
  9. %unlink_file(path()&SL&objfile)
  10. end