mirror of
https://github.com/corda/corda.git
synced 2025-06-18 23:28:21 +00:00
Merge branch 'master' into powerpc
Conflicts: makefile src/assembler.h src/binaryToMacho.cpp src/compile.cpp src/compiler.cpp src/x86.cpp
This commit is contained in:
@ -287,6 +287,15 @@ difference(void* a, void* b)
|
||||
return reinterpret_cast<intptr_t>(a) - reinterpret_cast<intptr_t>(b);
|
||||
}
|
||||
|
||||
template <class T>
|
||||
inline void*
|
||||
voidPointer(T function)
|
||||
{
|
||||
void* p;
|
||||
memcpy(&p, &function, sizeof(void*));
|
||||
return p;
|
||||
}
|
||||
|
||||
class Machine;
|
||||
class Thread;
|
||||
|
||||
|
Reference in New Issue
Block a user