mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
guile: return integer (0/1) instead of boolean in API functions
This commit is contained in:
@@ -68,10 +68,10 @@
|
||||
}
|
||||
#define API_RETURN_OK \
|
||||
API_FREE_STRINGS; \
|
||||
return SCM_BOOL_T
|
||||
return scm_from_int (1)
|
||||
#define API_RETURN_ERROR \
|
||||
API_FREE_STRINGS \
|
||||
return SCM_BOOL_F
|
||||
return scm_from_int (0)
|
||||
#define API_RETURN_EMPTY \
|
||||
API_FREE_STRINGS; \
|
||||
return scm_from_locale_string("")
|
||||
|
||||
Reference in New Issue
Block a user