Skip to content

Commit

Permalink
compiler: generates object code with explicit types
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 14, 2024
1 parent 1a86735 commit 35607fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/julec/obj/cxx/type.jule
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use std::jule::sema::{
Fn,
Param,
}
use types for std::jule::types

// Returns directive if exist.
fn find_directive(mut &directives: []&ast::Directive, tag: str): &ast::Directive {
Expand Down Expand Up @@ -54,6 +55,7 @@ impl TypeCoder {

// Returns given identifier as Jule type identifier.
static fn to_type(mut id: str): str {
id = types::real_kind_of(id)
if 97 <= id[0] && id[0] <= 122 {
id[0] -= 32 // To upper first byte.
}
Expand Down

0 comments on commit 35607fc

Please sign in to comment.