mirror of
https://github.com/felixangell/phi.git
synced 2024-08-16 19:20:21 +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() {
|
||||
runtime.LockOSThread()
|
||||
|
||||
config := cfg.Setup()
|
||||
|
||||
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