1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-16 11:26:11 +00:00

Fix c_str macro

This commit is contained in:
jugeeya 2020-06-15 15:09:26 -07:00 committed by GitHub
parent 2014d486e3
commit 889299eca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ mod training;
use crate::common::*;
use skyline::libc::{c_void, fclose, fopen, fwrite, mkdir, remove, access};
use skyline::libc::{fclose, fopen, fwrite, mkdir, remove, access};
use skyline::nro::{self, NroInfo};
fn nro_main(nro: &NroInfo<'_>) {
@ -25,8 +25,8 @@ fn nro_main(nro: &NroInfo<'_>) {
}
macro_rules! c_str {
($l:tt) => { concat!($l, "\u{0}")
.as_bytes()
($l:tt) => { [$l.as_bytes(), "\u{0}".as_bytes()]
.concat()
.as_ptr(); }
}