all: remove #objc for good
parent
e53b451d60
commit
99bdb87a01
|
@ -43,7 +43,7 @@ fn (cb &Clipboard) has_ownership() bool {
|
||||||
if cb.last_cb_serial == 0 {
|
if cb.last_cb_serial == 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
#return [cb->pb changeCount] == cb->last_cb_serial;
|
//#return [cb->pb changeCount] == cb->last_cb_serial;
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ pub:
|
||||||
// special case of event_fn
|
// special case of event_fn
|
||||||
click_fn FNMove = voidptr(0)
|
click_fn FNMove = voidptr(0)
|
||||||
// special case of event_fn
|
// 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
|
fullscreen bool
|
||||||
scale f32 = 1.0
|
scale f32 = 1.0
|
||||||
// vid needs this
|
// vid needs this
|
||||||
|
@ -416,10 +416,12 @@ pub fn (gg &Context) end() {
|
||||||
sgl.draw()
|
sgl.draw()
|
||||||
gfx.end_pass()
|
gfx.end_pass()
|
||||||
gfx.commit()
|
gfx.commit()
|
||||||
|
/*
|
||||||
if gg.config.wait_events {
|
if gg.config.wait_events {
|
||||||
// println('gg: waiting')
|
// println('gg: waiting')
|
||||||
wait_events()
|
wait_events()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
fn abs(a f32) f32 {
|
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()
|
fn C.WaitMessage()
|
||||||
|
|
||||||
|
/*
|
||||||
pub fn wait_events() {
|
pub fn wait_events() {
|
||||||
unsafe {
|
unsafe {
|
||||||
$if macos {
|
$if macos {
|
||||||
|
@ -474,3 +477,4 @@ pub fn wait_events() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
|
@ -2678,7 +2678,7 @@ fn (mut c Checker) hash_stmt(mut node ast.HashStmt) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if node.kind != 'define' {
|
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)
|
node.pos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue