Mercurial > pub > dyncall > dyncall
comparison test/suite_floats/case.cc @ 604:90dfdac91b9b
- cleanups, made some arrays local to TUs, etc.
author | Tassilo Philipp |
---|---|
date | Wed, 21 Sep 2022 14:36:44 +0200 |
parents | f5577f6bf97a |
children | 85b7a117b807 |
comparison
equal
deleted
inserted
replaced
603:c1208587091c | 604:90dfdac91b9b |
---|---|
27 | 27 |
28 #include "../../dyncall/dyncall.h" | 28 #include "../../dyncall/dyncall.h" |
29 #include "config.h" | 29 #include "config.h" |
30 #include "../../dyncall/dyncall_value.h" | 30 #include "../../dyncall/dyncall_value.h" |
31 | 31 |
32 DCValue mValue[NARGS]; | 32 static DCValue mValue[NARGS]; |
33 | 33 |
34 void clearValues() { for(int i = 0;i<NARGS;++i) mValue[i].L = 0xCAFEBABEDEADC0DEULL; } | 34 void clearValues() { for(int i = 0;i<NARGS;++i) mValue[i].L = 0xCAFEBABEDEADC0DEULL; } |
35 | 35 |
36 template<typename T> void g(T value, int pos); | 36 template<typename T> void g(T value, int pos); |
37 | 37 |
89 #define VF8(id,A1,A2,A3,A4,A5,A6,A7,A8,S) reinterpret_cast<void(*)()>(S), | 89 #define VF8(id,A1,A2,A3,A4,A5,A6,A7,A8,S) reinterpret_cast<void(*)()>(S), |
90 #define VF9(id,A1,A2,A3,A4,A5,A6,A7,A8,A9,S) reinterpret_cast<void(*)()>(S), | 90 #define VF9(id,A1,A2,A3,A4,A5,A6,A7,A8,A9,S) reinterpret_cast<void(*)()>(S), |
91 #define VF10(id,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,S) reinterpret_cast<void(*)()>(S), | 91 #define VF10(id,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,S) reinterpret_cast<void(*)()>(S), |
92 | 92 |
93 typedef void (*fp)(); | 93 typedef void (*fp)(); |
94 fp gFuncTable[] = { | 94 static fp gFuncTable[] = { |
95 #include "case.h" | 95 #include "case.h" |
96 }; | 96 }; |
97 | 97 |
98 DCpointer getFunc(int x) { | 98 DCpointer getFunc(int x) { |
99 return (DCpointer) gFuncTable[x]; | 99 return (DCpointer) gFuncTable[x]; |
100 } | 100 } |
101 |