git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@81 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-30 15:06:13 +00:00
parent 2997a8c017
commit e74b80da50
2 changed files with 4 additions and 4 deletions

View File

@@ -178,9 +178,9 @@ MWDECL void MwDispatchError(int code, const char* message);
/*!
* %brief Gets the before_step of widget
* %param handle Widget
* %return jmp_buf
* %param jmpbuf jmp_buf
*/
MWDECL jmp_buf MwGetBeforeStep(MwWidget handle);
MWDECL void MwGetBeforeStep(MwWidget handle, jmp_buf* jmpbuf);
#ifdef __cplusplus
}

View File

@@ -275,6 +275,6 @@ void MwDispatchError(int code, const char* message) {
}
}
jmp_buf MwGetBeforeStep(MwWidget handle) {
return handle->before_step;
void MwGetBeforeStep(MwWidget handle, jmp_buf* jmpbuf) {
memcpy(jmpbuf, &handle->before_step, sizeof(*jmpbuf));
}