builtin: define u8 = byte alias

pull/9739/head
Alexander Medvednikov 2021-04-15 02:58:27 +03:00
parent 546dc91967
commit 21c452c5cd
2 changed files with 5 additions and 2 deletions

View File

@ -39,7 +39,7 @@ mut:
* Texture functions
*
******************************************************************************/
fn create_texture(w int, h int, buf &byte) C.sg_image {
fn create_texture(w int, h int, buf &u8) C.sg_image {
sz := w * h * 4
mut img_desc := C.sg_image_desc{
width: w
@ -407,7 +407,8 @@ fn my_event_manager(mut ev gg.Event, mut app App) {
* Main
*
******************************************************************************/
[console] // is needed for easier diagnostics on windows
// is needed for easier diagnostics on windows
[console]
fn main() {
// App init
mut app := &App{

View File

@ -3,6 +3,8 @@
// that can be found in the LICENSE file.
module builtin
type u8 = byte
/*
// old function for reference
pub fn (nn int) str1() string {