LibreOffice Module sal (master) 1
Macros | Functions
main.h File Reference
#include "sal/config.h"
#include "sal/saldllapi.h"
#include "sal/types.h"
Include dependency graph for main.h:

Go to the source code of this file.

Macros

#define SAL_MAIN_WITH_ARGS_IMPL
 
#define SAL_MAIN_IMPL
 
#define SAL_WIN_WinMain
 
#define SAL_IMPLEMENT_MAIN_WITH_ARGS(_argc_, _argv_)
 
#define SAL_IMPLEMENT_MAIN()
 

Functions

SAL_DLLPUBLIC void SAL_CALL sal_detail_initialize (int argc, char **argv)
 
SAL_DLLPUBLIC void SAL_CALL sal_detail_deinitialize (void)
 

Macro Definition Documentation

◆ SAL_IMPLEMENT_MAIN

#define SAL_IMPLEMENT_MAIN ( )
Value:
static int SAL_CALL sal_main(void); \
SAL_MAIN_IMPL \
SAL_WIN_WinMain \
static int SAL_CALL sal_main(void)

Definition at line 120 of file main.h.

◆ SAL_IMPLEMENT_MAIN_WITH_ARGS

#define SAL_IMPLEMENT_MAIN_WITH_ARGS (   _argc_,
  _argv_ 
)
Value:
static int SAL_CALL sal_main_with_args (int _argc_, char ** _argv_); \
SAL_MAIN_WITH_ARGS_IMPL \
SAL_WIN_WinMain \
static int SAL_CALL sal_main_with_args(int _argc_, char ** _argv_)

Definition at line 114 of file main.h.

◆ SAL_MAIN_IMPL

#define SAL_MAIN_IMPL
Value:
int SAL_DLLPUBLIC_EXPORT SAL_CALL main(int argc, char ** argv) \
{ \
int ret; \
sal_detail_initialize(argc, argv); \
ret = sal_main(); \
sal_detail_deinitialize(); \
return ret; \
}

Definition at line 59 of file main.h.

◆ SAL_MAIN_WITH_ARGS_IMPL

#define SAL_MAIN_WITH_ARGS_IMPL
Value:
int SAL_DLLPUBLIC_EXPORT SAL_CALL main(int argc, char ** argv) \
{ \
int ret; \
sal_detail_initialize(argc, argv); \
ret = sal_main_with_args(argc, argv); \
sal_detail_deinitialize(); \
return ret; \
}

Definition at line 49 of file main.h.

◆ SAL_WIN_WinMain

#define SAL_WIN_WinMain

Definition at line 108 of file main.h.

Function Documentation

◆ sal_detail_deinitialize()

SAL_DLLPUBLIC void SAL_CALL sal_detail_deinitialize ( void  )

◆ sal_detail_initialize()

SAL_DLLPUBLIC void SAL_CALL sal_detail_initialize ( int  argc,
char **  argv 
)