mirror of
https://github.com/Ed94/gencpp.git
synced 2025-07-12 00:25:43 -07:00
Test now runs generated code, swtiched math test to use polyorphism from cpp.
Now need to make that array test...
This commit is contained in:
@ -1,24 +1,24 @@
|
||||
inline
|
||||
u8 square_u8(u8 value)
|
||||
u8 square(u8 value)
|
||||
{
|
||||
return value * value
|
||||
return value * value;
|
||||
}
|
||||
|
||||
inline
|
||||
u16 square_u16(u16 value)
|
||||
u16 square(u16 value)
|
||||
{
|
||||
return value * value
|
||||
return value * value;
|
||||
}
|
||||
|
||||
inline
|
||||
u32 square_u32(u32 value)
|
||||
u32 square(u32 value)
|
||||
{
|
||||
return value * value
|
||||
return value * value;
|
||||
}
|
||||
|
||||
inline
|
||||
u64 square_u64(u64 value)
|
||||
u64 square(u64 value)
|
||||
{
|
||||
return value * value
|
||||
return value * value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user