mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Replace usage of inline proc with #force_inline proc in the core library
This commit is contained in:
@@ -379,16 +379,16 @@ is_blank_ident :: proc{
|
||||
is_blank_ident_token,
|
||||
is_blank_ident_node,
|
||||
};
|
||||
is_blank_ident_string :: inline proc(str: string) -> bool {
|
||||
is_blank_ident_string :: proc(str: string) -> bool {
|
||||
return str == "_";
|
||||
}
|
||||
is_blank_ident_token :: inline proc(tok: tokenizer.Token) -> bool {
|
||||
is_blank_ident_token :: proc(tok: tokenizer.Token) -> bool {
|
||||
if tok.kind == .Ident {
|
||||
return is_blank_ident_string(tok.text);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
is_blank_ident_node :: inline proc(node: ^ast.Node) -> bool {
|
||||
is_blank_ident_node :: proc(node: ^ast.Node) -> bool {
|
||||
if ident, ok := node.derived.(ast.Ident); ok {
|
||||
return is_blank_ident(ident.name);
|
||||
}
|
||||
|
||||
@@ -397,7 +397,7 @@ scan_number :: proc(t: ^Tokenizer, seen_decimal_point: bool) -> (Token_Kind, str
|
||||
scan_exponent(t, &kind);
|
||||
} else {
|
||||
if t.ch == '0' {
|
||||
int_base :: inline proc(t: ^Tokenizer, kind: ^Token_Kind, base: int, msg: string) {
|
||||
int_base :: proc(t: ^Tokenizer, kind: ^Token_Kind, base: int, msg: string) {
|
||||
prev := t.offset;
|
||||
advance_rune(t);
|
||||
scan_mantissa(t, base);
|
||||
|
||||
Reference in New Issue
Block a user