mirror of
https://github.com/eddyem/eddys_snippets.git
synced 2026-03-20 08:41:02 +03:00
add shared library template with examples subdirectory
This commit is contained in:
17
sharedlib_template/usefull_macros.c
Normal file
17
sharedlib_template/usefull_macros.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined GETTEXT
|
||||
#include <libintl.h>
|
||||
#define _(String) gettext(String)
|
||||
#define gettext_noop(String) String
|
||||
#define N_(String) gettext_noop(String)
|
||||
#else
|
||||
#define _(String) (String)
|
||||
#define N_(String) (String)
|
||||
#endif
|
||||
|
||||
|
||||
void helloworld(){
|
||||
/// ûÁÌÏÍ, ÍÉÒ!!!\n
|
||||
printf(_("Hello, World!!!\n"));
|
||||
}
|
||||
Reference in New Issue
Block a user