mirror of
https://github.com/felixangell/phi.git
synced 2024-09-11 15:55:25 +03:00
lock os thread
This commit is contained in:
parent
7e56f9af56
commit
56a68c6fae
2
main.go
2
main.go
@ -67,6 +67,8 @@ func (n *PhiEditor) render(ctx *strife.Renderer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
runtime.LockOSThread()
|
||||||
|
|
||||||
config := cfg.Setup()
|
config := cfg.Setup()
|
||||||
|
|
||||||
ww, wh := 1280, 720
|
ww, wh := 1280, 720
|
||||||
|
17
testsamples/main.c
Normal file
17
testsamples/main.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user