git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@196 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-07 06:05:07 +00:00
parent cda51fb0ee
commit b63e97c996
3 changed files with 6 additions and 4 deletions

View File

@@ -165,7 +165,7 @@
<a href="#Mw_Error_h___MwEerror"> MwEerror</a>
</dd>
<dd>
<a href="#Mw_Error_h__MwGetLastError__">MwGetLastError()</a>
<a href="#Mw_Error_h__MwGetLastError">MwGetLastError</a>
</dd>
<dt>
<a href="#Mw_Font_h">Mw/Font.h</a>
@@ -1501,7 +1501,9 @@
</dd>
</dl>
<hr>
<pre id="Mw_Error_h__MwGetLastError__">MWDECL <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* <B><FONT COLOR="#0000FF">MwGetLastError</FONT></B>();</pre>
<pre id="Mw_Error_h__MwGetLastError">MWDECL <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* <B><FONT COLOR="#0000FF">MwGetLastError</FONT></B> (
<B><FONT COLOR="#228B22">void</FONT></B>
);</pre>
<dl>
<dd>
Get the last error.

View File

@@ -25,6 +25,6 @@ typedef enum MwErrorEnum_T {
/*!
* %brief Get the last error
*/
MWDECL const char* MwGetLastError();
MWDECL const char* MwGetLastError(void);
#endif

View File

@@ -7,7 +7,7 @@
// buffer for holding the error. +1 to ensure there's always a null terminator.
char error[MAX_ERROR_LEN + 1] = {0};
const char* MwGetLastError() {
const char* MwGetLastError(void) {
return error;
}