From 99bdb87a011521441cd859b661a74371cd4a002b Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 20 Nov 2020 23:49:52 +0100 Subject: [PATCH] all: remove #objc for good --- vlib/clipboard/clipboard_darwin.c.v | 2 +- vlib/gg/gg.v | 6 +++++- vlib/v/checker/checker.v | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) 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) } }