1
0
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:
Alexander Medvednikov
2021-04-23 13:33:48 +03:00
parent aa40dfc1de
commit c7a6d28e13
64 changed files with 199 additions and 141 deletions

View File

@ -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();
}