eina_log_01.c
//Compile with:
//gcc -Wall -o eina_log_01 eina_log_01.c `pkg-config --cflags --libs eina`
#include <stdlib.h>
#include <stdio.h>
#include <Eina.h>
void test_warn(void)
{
EINA_LOG_WARN("Here is a warning message");
}
int main(void)
{
if (!eina_init())
{
printf("log during the initialization of Eina_Log module\n");
return EXIT_FAILURE;
}
test_warn();
return EXIT_SUCCESS;
}
Eina Utility library.
#define EINA_LOG_WARN(fmt,...)
Logs a message with level WARN on the default domain with the specified format.
Definition eina_log.h:392
int eina_shutdown(void)
Shut down the Eina library.
Definition eina_main.c:315
int eina_init(void)
Initialize the Eina library.
Definition eina_main.c:244