Update FIXING_SCRIPTS.md
This commit is contained in:
parent
83c1b98693
commit
d3e7ec51f8
@ -103,3 +103,16 @@ void main()
|
||||
SetLocalInt(oSelf, "NBOARD_POST_COUNT", nPostCount);
|
||||
}
|
||||
```
|
||||
|
||||
## Multi-line strings / Raw strings
|
||||
The NWNEE compiler now supports multiline strings or raw strings which means you can write strings which span multiple lines and don't need to concatenate them or anything crazy like that:
|
||||
```c
|
||||
dbresult dbResult = SqlPrepareQuery(
|
||||
R"SELECT notice_id,pc_id,creation_time,title,content
|
||||
FROM notices
|
||||
WHERE board_tag=$1
|
||||
AND creation_time > $2
|
||||
ORDER BY creation_time
|
||||
DESC LIMIT 6 OFFSET $3");
|
||||
```
|
||||
Simply prepend the string with `R"` instead of the regular `"` and end it with a regular `"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user