mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-14 07:01:25 -07:00
Separation of certain instructions for better clarity.
This commit is contained in:
+3
-1
@@ -1,7 +1,9 @@
|
||||
#import "fmt.odin"
|
||||
|
||||
main :: proc() {
|
||||
fmt.println("Hellope!")
|
||||
v: {4}f32
|
||||
v[0] = 123
|
||||
fmt.println("Hellope!", v, v[0])
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -46,7 +46,8 @@ make_window :: proc(title: string, msg, height: int, window_proc: win32.WNDPROC)
|
||||
w: Window
|
||||
w.width, w.height = msg, height
|
||||
|
||||
c_class_name := "Win32-Odin-Window\x00".data
|
||||
class_name := "Win32-Odin-Window\x00"
|
||||
c_class_name := class_name.data
|
||||
if title[title.count-1] != 0 {
|
||||
w.c_title = to_c_string(title)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user