.
This commit is contained in:
parent
93840bc2ab
commit
b18962cc82
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,4 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
|
||||||
#include <Block.h>
|
|
||||||
|
|
||||||
typedef uint8_t u8;
|
typedef uint8_t u8;
|
||||||
typedef uint16_t u16;
|
typedef uint16_t u16;
|
||||||
|
|
@ -30,6 +28,8 @@ typedef sptr sreg;
|
||||||
#define bitcast(to_type, from_type, expr) (((union { from_type from; to_type to; }){_Generic(expr, from_type: expr)}).to)
|
#define bitcast(to_type, from_type, expr) (((union { from_type from; to_type to; }){_Generic(expr, from_type: expr)}).to)
|
||||||
|
|
||||||
|
|
||||||
|
#include <Block.h>
|
||||||
|
|
||||||
#define capture __block
|
#define capture __block
|
||||||
#define closure Block_copy
|
#define closure Block_copy
|
||||||
|
|
||||||
|
|
@ -43,4 +43,3 @@ static inline void __defer__exec(__defer__block *blk) { (*blk)(); }
|
||||||
#define scope_exit \
|
#define scope_exit \
|
||||||
__attribute__((cleanup(__defer__exec), unused)) \
|
__attribute__((cleanup(__defer__exec), unused)) \
|
||||||
__defer__block __concat(_defer_, __LINE__) = ^
|
__defer__block __concat(_defer_, __LINE__) = ^
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#include "base.c"
|
#include "base.c"
|
||||||
#include "arena.c"
|
#include "arena.c"
|
||||||
|
|
||||||
|
|
||||||
sg_pass_action pass_action;
|
sg_pass_action pass_action;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue