diff --git a/vlib/clipboard/clipboard_darwin.c.v b/vlib/clipboard/clipboard_darwin.c.v index fcb756ada3..bc9e265a4c 100644 --- a/vlib/clipboard/clipboard_darwin.c.v +++ b/vlib/clipboard/clipboard_darwin.c.v @@ -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 } diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index 7821bd509b..5310b223b5 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -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() { } } } +*/ diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index b9497494ad..aae238b83f 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -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) } }