Skip to content

Commit 8a1641d

Browse files
authored
Add cstr! find / replace Regex to README (#11)
1 parent e3b7b48 commit 8a1641d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
* Send Alex (aorlenko/khvzak) your github username to be added to the repo to push branches (so you don't have to work from a fork).
1414
* Please don't push to master unless the tests pass!
1515
* Not everything needs porting. E.g. rust supplies printf already, so you don't need to port this
16-
* Note `cstr` from `macros.rs` lua uses C strings (0 byte terminated) rust doesn't, this macro helps with that.
16+
* Note `cstr!` from `macros.rs`, lua uses C strings (0 byte terminated) rust doesn't, this macro helps with that.
17+
* You can replace byte terminated strings with this macro in vscode using the following find and replace regex: `b(".*)\\0" as \*const u8 as \*const c_char` and `cstr!($1")`
1718

1819
# Project tracking
1920

0 commit comments

Comments
 (0)