mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Merge branch 'master' of https://github.com/odin-lang/Odin
This commit is contained in:
@@ -420,7 +420,7 @@ marshal_to_writer :: proc(w: io.Writer, v: any, opt: ^Marshal_Options) -> (err:
|
|||||||
data := rawptr(uintptr(v.data) + info.offsets[i])
|
data := rawptr(uintptr(v.data) + info.offsets[i])
|
||||||
the_value := any{data, id}
|
the_value := any{data, id}
|
||||||
|
|
||||||
if is_omitempty(the_value) {
|
if omitempty && is_omitempty(the_value) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ json_name_from_tag_value :: proc(value: string) -> (json_name, extra: string) {
|
|||||||
json_name = value
|
json_name = value
|
||||||
if comma_index := strings.index_byte(json_name, ','); comma_index >= 0 {
|
if comma_index := strings.index_byte(json_name, ','); comma_index >= 0 {
|
||||||
json_name = json_name[:comma_index]
|
json_name = json_name[:comma_index]
|
||||||
extra = json_name[comma_index:]
|
extra = value[1 + comma_index:]
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ foreign user32 {
|
|||||||
CreatePopupMenu :: proc() -> HMENU ---
|
CreatePopupMenu :: proc() -> HMENU ---
|
||||||
DestroyMenu :: proc(hMenu: HMENU) -> BOOL ---
|
DestroyMenu :: proc(hMenu: HMENU) -> BOOL ---
|
||||||
AppendMenuW :: proc(hMenu: HMENU, uFlags: UINT, uIDNewItem: UINT_PTR, lpNewItem: LPCWSTR) -> BOOL ---
|
AppendMenuW :: proc(hMenu: HMENU, uFlags: UINT, uIDNewItem: UINT_PTR, lpNewItem: LPCWSTR) -> BOOL ---
|
||||||
|
SetMenu :: proc(hWnd: HWND, hMenu: HMENU) -> BOOL ---
|
||||||
TrackPopupMenu :: proc(hMenu: HMENU, uFlags: UINT, x: int, y: int, nReserved: int, hWnd: HWND, prcRect: ^RECT) -> i32 ---
|
TrackPopupMenu :: proc(hMenu: HMENU, uFlags: UINT, x: int, y: int, nReserved: int, hWnd: HWND, prcRect: ^RECT) -> i32 ---
|
||||||
RegisterWindowMessageW :: proc(lpString: LPCWSTR) -> UINT ---
|
RegisterWindowMessageW :: proc(lpString: LPCWSTR) -> UINT ---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user