all: remove #objc for good

pull/6896/head
Alexander Medvednikov 2020-11-20 23:49:52 +01:00
parent e53b451d60
commit 99bdb87a01
3 changed files with 7 additions and 3 deletions

View File

@ -43,7 +43,7 @@ fn (cb &Clipboard) has_ownership() bool {
if cb.last_cb_serial == 0 {
return false
}
#return [cb->pb changeCount] == cb->last_cb_serial;
//#return [cb->pb changeCount] == cb->last_cb_serial;
return false
}

View File

@ -51,7 +51,7 @@ pub:
// special case of event_fn
click_fn FNMove = voidptr(0)
// special case of event_fn
wait_events bool // set this to true for UIs, to save power
//wait_events bool // set this to true for UIs, to save power
fullscreen bool
scale f32 = 1.0
// vid needs this
@ -416,10 +416,12 @@ pub fn (gg &Context) end() {
sgl.draw()
gfx.end_pass()
gfx.commit()
/*
if gg.config.wait_events {
// println('gg: waiting')
wait_events()
}
*/
}
fn abs(a f32) f32 {
@ -460,6 +462,7 @@ pub fn (ctx &Context) draw_empty_rounded_rect(x f32, y f32, width f32, height f3
fn C.WaitMessage()
/*
pub fn wait_events() {
unsafe {
$if macos {
@ -474,3 +477,4 @@ pub fn wait_events() {
}
}
}
*/

View File

@ -2678,7 +2678,7 @@ fn (mut c Checker) hash_stmt(mut node ast.HashStmt) {
}
} else {
if node.kind != 'define' {
c.warn('expected `#define`, `#flag`, `#include` or `#pkgconfig` not $node.val',
c.error('expected `#define`, `#flag`, `#include` or `#pkgconfig` not $node.val',
node.pos)
}
}