mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
app/internal/log: fold header file into Go preamble
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -7,7 +7,7 @@ package log
|
|||||||
/*
|
/*
|
||||||
#cgo CFLAGS: -Werror -fmodules -fobjc-arc -x objective-c
|
#cgo CFLAGS: -Werror -fmodules -fobjc-arc -x objective-c
|
||||||
|
|
||||||
#include "log_ios.h"
|
__attribute__ ((visibility ("hidden"))) void nslog(char *str);
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
// SPDX-License-Identifier: Unlicense OR MIT
|
|
||||||
|
|
||||||
__attribute__ ((visibility ("hidden"))) void nslog(char *str);
|
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
@import Foundation;
|
@import Foundation;
|
||||||
|
|
||||||
#include "log_ios.h"
|
#include "_cgo_export.h"
|
||||||
|
|
||||||
void nslog(char *str) {
|
void nslog(char *str) {
|
||||||
NSLog(@"%@", @(str));
|
NSLog(@"%@", @(str));
|
||||||
|
|||||||
Reference in New Issue
Block a user