I'm pretty sure I missed cases and introduced bugs with the new CGenerator triplit system, but I finally got all normal tests passing, and it's almost 5 in the morning, so I'm calling it a night. We have destructors and copy constructors now\! I need to work out copy assignment, but again, another day
This commit is contained in:
@@ -23,11 +23,11 @@ fun free<T>(memPtr: T*): void {
|
||||
}
|
||||
|
||||
fun sizeof<T>(): int {
|
||||
var testObj: T;
|
||||
var testObj: T*;
|
||||
var result: int;
|
||||
__if_comp__ __C__ {
|
||||
simple_passthrough(testObj = testObj : result = result:) """
|
||||
int result = sizeof(testObj);
|
||||
int result = sizeof(*testObj);
|
||||
"""
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user