aboutsummaryrefslogtreecommitdiffhomepage
path: root/sample
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2015-07-22 22:32:08 +0900
committerMITSUNARI Shigeo <[email protected]>2015-07-22 22:32:08 +0900
commit1e208fd20225441f9ed02c7470335c731d958ebb (patch)
tree0ce73205758c667619c09dac76b510d61dd6aacb /sample
parentdf615b75812607a049a02a5360ba30313967df33 (diff)
downloadxbyak-1e208fd20225441f9ed02c7470335c731d958ebb.tar.gz
xbyak-1e208fd20225441f9ed02c7470335c731d958ebb.zip
call supports variadic template if possiblev4.84
Diffstat (limited to 'sample')
-rw-r--r--sample/test0.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sample/test0.cpp b/sample/test0.cpp
index fda8ef8..e437092 100644
--- a/sample/test0.cpp
+++ b/sample/test0.cpp
@@ -74,7 +74,11 @@ public:
#else
mov(eax, ptr [esp + 4]);
push(eax);
+#ifdef XBYAK_VARIADIC_TEMPLATE
+ call(atoi);
+#else
call(Xbyak::CastTo<void*>(atoi));
+#endif
add(esp, 4);
#endif
ret();