aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerState.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-05-30 20:55:07 +0800
committerGav Wood <i@gavwood.com>2014-05-30 20:55:07 +0800
commitb379ce906530797f0f58569653b648ab64f2968d (patch)
tree326b6e471cf081ea28808fc74777bfbcb1ed379e /CompilerState.cpp
parent78c0baa026d69a6b03d0f3d9288c4da4e03f4b96 (diff)
downloaddexon-solidity-b379ce906530797f0f58569653b648ab64f2968d.tar
dexon-solidity-b379ce906530797f0f58569653b648ab64f2968d.tar.gz
dexon-solidity-b379ce906530797f0f58569653b648ab64f2968d.tar.bz2
dexon-solidity-b379ce906530797f0f58569653b648ab64f2968d.tar.lz
dexon-solidity-b379ce906530797f0f58569653b648ab64f2968d.tar.xz
dexon-solidity-b379ce906530797f0f58569653b648ab64f2968d.tar.zst
dexon-solidity-b379ce906530797f0f58569653b648ab64f2968d.zip
Variadic macros work.
Diffstat (limited to 'CompilerState.cpp')
-rw-r--r--CompilerState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CompilerState.cpp b/CompilerState.cpp
index 571b9de3..e5d0b2a0 100644
--- a/CompilerState.cpp
+++ b/CompilerState.cpp
@@ -42,8 +42,8 @@ void CompilerState::populateStandard()
static const string s = "{"
"(def 'gav 0x8a40bfaa73256b60764c1bf40675a99083efb075)"
"(def 'send (to value) (call (- (gas) 21) to value 0 0 0 0))"
-#if 0
"(def 'send (gaslimit to value) (call gaslimit to value 0 0 0 0))"
+#if 1
"(def 'alloc (len) (asm msize 0 1 len msize add sub mstore8))"
"(def 'msg (gaslimit to value data datasize outsize) { [32]:outsize [0]:(alloc @32) (call gaslimit to value data datasize @0 @32) @0 })"
"(def 'msg (gaslimit to value data datasize) { (call gaslimit to value data datasize 0 32) @0 })"