Implement commandline namespace

This commit is contained in:
Siu Kwan Lam 2013-02-08 18:12:36 -06:00
commit c66dad7ece
2 changed files with 14 additions and 3 deletions

View file

@ -0,0 +1,12 @@
from binding import *
from src.namespace import cl
cl.includes.add('llvm/Support/CommandLine.h')
ParseEnvironmentOptions = cl.Function('ParseEnvironmentOptions',
Void,
cast(str, ConstCharPtr), # progName
cast(str, ConstCharPtr), # envvar
cast(str, ConstCharPtr), # overiew = 0
).require_only(2)

View file

@ -1,7 +1,6 @@
from binding import *
default = Namespace('')
llvm = Namespace('llvm')
llvm = default.Namespace('llvm')
sys = llvm.Namespace('sys')
cl = llvm.Namespace('cl')