diff options
author | wushin <pasekei@gmail.com> | 2015-06-09 01:06:22 -0500 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-15 11:44:49 -0400 |
commit | 506a41d6926405b2753894f0b40130b4077828b3 (patch) | |
tree | 401fd473a23d80dcdcbd56d0c89f6587a46f878c /src/map/magic-expr.py | |
parent | a8640e1df61c06faf6edb89c5c4b9f025c0dff33 (diff) | |
download | tmwa-506a41d6926405b2753894f0b40130b4077828b3.tar.gz tmwa-506a41d6926405b2753894f0b40130b4077828b3.tar.bz2 tmwa-506a41d6926405b2753894f0b40130b4077828b3.tar.xz tmwa-506a41d6926405b2753894f0b40130b4077828b3.zip |
Remove old Magic
Diffstat (limited to 'src/map/magic-expr.py')
-rw-r--r-- | src/map/magic-expr.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/map/magic-expr.py b/src/map/magic-expr.py deleted file mode 100644 index f53ddc8..0000000 --- a/src/map/magic-expr.py +++ /dev/null @@ -1,38 +0,0 @@ -class fun_t(object): - __slots__ = ('_value') - - name = 'tmwa::map::magic::fun_t' - depth = 1 - enabled = True - - def __init__(self, value): - if not value: - value = None - self._value = value - - def to_string(self): - value = self._value - if value is None: - return '(fun_t *) nullptr' - return '(fun_t *)' - - def children(self): - value = self._value - if value is None: - return - value = value.dereference() - yield '->name', value['name'] - yield '->signature', value['signature'] - yield '->ret_ty', value['ret_ty'] - yield '->fun', value['fun'] - - test_extra = ''' - using tmwa::operator "" _s; - ''' - - tests = [ - ('static_cast<tmwa::map::magic::fun_t *>(nullptr)', - '(fun_t *) nullptr'), - ('new tmwa::map::magic::fun_t{"name"_s, "sig"_s, \'\\0\', nullptr}', - '(fun_t *) = {->name = "name", ->signature = "sig", ->ret_ty = 0 \'\\000\', ->fun = nullptr}'), - ] |