added glad generator and a glad runtime
This commit is contained in:
parent
2017f6195e
commit
ac18a84a9c
62 changed files with 32373 additions and 10 deletions
13
tools/glad-0.1.14a0/glad/lang/common/util.py
Normal file
13
tools/glad-0.1.14a0/glad/lang/common/util.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
import os.path
|
||||
import os
|
||||
|
||||
|
||||
def enforce(exp, message, exc):
|
||||
if not exp:
|
||||
raise exc(message)
|
||||
|
||||
|
||||
def makefiledir(path):
|
||||
dir = os.path.split(path)[0]
|
||||
if not os.path.exists(dir):
|
||||
os.makedirs(dir)
|
Loading…
Add table
Add a link
Reference in a new issue