lock os thread

This commit is contained in:
Felix Angell 2018-05-07 12:04:25 +01:00
parent 7e56f9af56
commit 56a68c6fae
2 changed files with 19 additions and 0 deletions

View File

@ -67,6 +67,8 @@ func (n *PhiEditor) render(ctx *strife.Renderer) {
}
func main() {
runtime.LockOSThread()
config := cfg.Setup()
ww, wh := 1280, 720

17
testsamples/main.c Normal file
View File

@ -0,0 +1,17 @@
#include <stdio.h>
int main() {
int age;
scanf("%d\n", &age);
printf("wow, you are %d years old!\n", age);
{
int x = 3;
printf("%d\n", x);
x = 4;
int* y = &x;
printf("Hello world %d, %d!\n", x, *y);
}
return 0;
}