mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-25 04:31:52 +00:00
fix template instantiation dependencies
This commit is contained in:
parent
dd7a6d9862
commit
461989baee
@ -8,6 +8,7 @@
|
||||
template<unsigned N>
|
||||
void ToolReturn(uint32_t sp, uint32_t value)
|
||||
{
|
||||
if (sp == -1) sp = cpuGetAReg(7);
|
||||
static_assert(N == 2 || N == 4, "Invalid Return Size");
|
||||
if (N == 4)
|
||||
{
|
||||
@ -19,6 +20,14 @@ void ToolReturn(uint32_t sp, uint32_t value)
|
||||
}
|
||||
}
|
||||
|
||||
// pre-define these templates to prevent instantiation errors.
|
||||
template<int Bytes, int Offset, typename... Args>
|
||||
uint32_t StackFrame__(uint32_t sp, uint32_t &x, Args&... args);
|
||||
template<int Bytes, int Offset, typename... Args>
|
||||
uint32_t StackFrame__(uint32_t sp, uint16_t &x, Args&... args);
|
||||
template<int Bytes, int Offset>
|
||||
uint32_t StackFrame__(uint32_t sp);
|
||||
|
||||
|
||||
template<int Bytes, int Offset>
|
||||
uint32_t StackFrame__(uint32_t sp)
|
||||
|
Loading…
Reference in New Issue
Block a user