PageRenderTime 22ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

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

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