Skip to content

Commit 5e32ae2

Browse files
committed
include guard
- instead of the library including y_va and y_inline, let them do it instead - using #error directive to show if they've included this library before y_inline and y_va.
1 parent 9b3127a commit 5e32ae2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

mysql_prepared.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#if !defined _INC_y_va
3-
#error You need to include <YSI_Coding/y_va> before using this library.
3+
#error You need to "#include <YSI_Coding/y_va>" before using this library.
44
#endif
55

66
#if defined MYSQL_PREPARED_INC
@@ -652,5 +652,5 @@ stock bool:MySQL_ExecuteParallel(Statement:statement, const callback[] = "", con
652652
return stmt_execute_inline(statement, TYPE_PARALLEL, callback);
653653
}
654654
#else
655-
#error You need to include <YSI_Coding/y_va> before using this library.
655+
#error You need to "#include <YSI_Coding/y_inline>" before using this library.
656656
#endif

test.pwn

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// generated by "sampctl package generate"
22

33
#include <a_mysql>
4-
#include <YSI_Coding\y_inline>
4+
55
#include <YSI_Coding\y_va>
6-
#include "mysql_prepared"
6+
#include <YSI_Coding\y_inline>
77

8+
#include "mysql_prepared"
89

910
new MySQL:MySQLHandle;
1011

0 commit comments

Comments
 (0)