mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: improve unused variable warning (fix x = 1
, x += 1
etc)
This commit is contained in:
8
thirdparty/sokol/sokol_app2.h
vendored
8
thirdparty/sokol/sokol_app2.h
vendored
@ -1,14 +1,14 @@
|
||||
|
||||
@implementation MyView2
|
||||
|
||||
int xx = 0;
|
||||
int __v_sokol_inited = 0;
|
||||
|
||||
// Alternative drawRect which calls a frame function with native Cocoa calls
|
||||
- (void)drawRect:(NSRect)rect {
|
||||
puts("drawRect()");
|
||||
if (xx == 0) {
|
||||
//puts("drawRect()");
|
||||
if (__v_sokol_inited == 0) {
|
||||
_sapp_call_init();
|
||||
xx = 1;
|
||||
__v_sokol_inited = 1;
|
||||
}
|
||||
_sapp_call_frame_native();
|
||||
}
|
||||
|
Reference in New Issue
Block a user