diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-05 14:52:28 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-05 14:52:28 +0000 |
| commit | 36ca34b16626efb8a156adb3eddfb1b48c1f0b39 (patch) | |
| tree | 237903eb83974fba6b78bdfe9460aaec50a788d6 | |
| parent | d012fcfd528d0d9fb3540779531d0430224985a8 (diff) | |
| download | lasso-36ca34b16626efb8a156adb3eddfb1b48c1f0b39.tar.gz lasso-36ca34b16626efb8a156adb3eddfb1b48c1f0b39.tar.xz lasso-36ca34b16626efb8a156adb3eddfb1b48c1f0b39.zip | |
Add a macro to emit a «Function is deprecated» warning
| -rw-r--r-- | lasso/utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lasso/utils.h b/lasso/utils.h index b21931a4..8d14fd17 100644 --- a/lasso/utils.h +++ b/lasso/utils.h @@ -156,4 +156,8 @@ } \ } +/* Warn of a call to a deprecated function */ +#define lasso_warn_deprecated() \ + g_warning("Function %s is deprecated !!!", G_STRFUNC) + #endif /* __LASSO_UTILS_H__ */ |
