Implement commandline namespace
This commit is contained in:
parent
355332d6d8
commit
c66dad7ece
2 changed files with 14 additions and 3 deletions
12
newbinding/src/Support/CommandLine.py
Normal file
12
newbinding/src/Support/CommandLine.py
Normal 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)
|
||||
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
from binding import *
|
||||
|
||||
default = Namespace('')
|
||||
|
||||
llvm = Namespace('llvm')
|
||||
llvm = default.Namespace('llvm')
|
||||
sys = llvm.Namespace('sys')
|
||||
|
||||
cl = llvm.Namespace('cl')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue