mirror of
https://github.com/OpenCMT/uLib.git
synced 2025-12-06 07:21:31 +01:00
[uLib Geometry]
non working version! + adds ProgrammableAccessor + renaming of some Image structures ...
This commit is contained in:
42
tmp/c_vtable/main.c
Normal file
42
tmp/c_vtable/main.c
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
#include "Object.h"
|
||||
#include "Vector.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
using namespace ltk;
|
||||
int main()
|
||||
{
|
||||
Object ob;
|
||||
printf("%d\n",ob.Get());
|
||||
|
||||
Vector vec;
|
||||
printf("%d\n",vec.Get());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
|
||||
|
||||
static inline do_main() {
|
||||
Object ob = ltk_object_new();
|
||||
printf("%d\n",OBJECT_CLASS->get(ob));
|
||||
|
||||
|
||||
Vector vec = ltk_vector_new();
|
||||
printf("%d\n",VECTOR_CLASS->get(vec));
|
||||
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
do_main();
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user