// Copyright © 2018 Graham Sanderson, all rights reserved. #ifndef lith_types_h #define lith_types_h #include #include #include #define stkcall [[__call("StkCall")]] #define script [[__call("ScriptS")]] #define scriptn [[__call("ScriptI")]] #define optargs(x) [[__optional_args(x)]] #define noinit [[__no_init]] #define anonymous [[__anonymous]] #define address(x) [[__address(x)]] #define acs [[__extern("ACS")]] #define stksize(x) [[__alloc_Aut(x)]] #define type(x) [[__script(x)]] #define net type("net") #define clientside type("clientside") typedef int64_t i64; typedef int96_t i96; typedef uint32_t u32; typedef uint64_t u64; typedef uint96_t u96; typedef unsigned char byte; typedef long fixed fixed64; struct polar { fixed ang; fixed dst; }; struct vec2f { float x, y; }; struct vec2i { int x, y; }; #endif