style cleanup: for creator.c & more useful assert message (file:line)
This commit is contained in:
@@ -293,8 +293,8 @@
|
||||
(void)((!(a)) ? ( \
|
||||
( \
|
||||
fprintf(stderr, \
|
||||
"BLI_assert failed: %s, %s(), %d at \'%s\'\n", \
|
||||
__FILE__, __func__, __LINE__, STRINGIFY(a)), \
|
||||
"BLI_assert failed: %s:%d, %s(), at \'%s\'\n", \
|
||||
__FILE__, __LINE__, __func__, STRINGIFY(a)), \
|
||||
_BLI_DUMMY_ABORT(), \
|
||||
NULL)) : NULL)
|
||||
# else
|
||||
@@ -302,7 +302,7 @@
|
||||
(void)((!(a)) ? ( \
|
||||
( \
|
||||
fprintf(stderr, \
|
||||
"BLI_assert failed: %s, %d at \'%s\'\n", \
|
||||
"BLI_assert failed: %s:%d, at \'%s\'\n", \
|
||||
__FILE__, __LINE__, STRINGIFY(a)), \
|
||||
_BLI_DUMMY_ABORT(), \
|
||||
NULL)) : NULL)
|
||||
|
@@ -59,7 +59,7 @@
|
||||
|
||||
#include "BLI_args.h"
|
||||
#include "BLI_threads.h"
|
||||
#include "BLI_scanfill.h" // for BLI_setErrorCallBack, TODO, move elsewhere
|
||||
#include "BLI_scanfill.h" /* for BLI_setErrorCallBack, TODO, move elsewhere */
|
||||
#include "BLI_utildefines.h"
|
||||
#include "BLI_callbacks.h"
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
#include "BKE_utildefines.h"
|
||||
#include "BKE_blender.h"
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_depsgraph.h" // for DAG_on_visible_update
|
||||
#include "BKE_depsgraph.h" /* for DAG_on_visible_update */
|
||||
#include "BKE_font.h"
|
||||
#include "BKE_global.h"
|
||||
#include "BKE_main.h"
|
||||
@@ -84,7 +84,7 @@
|
||||
#include "BKE_sound.h"
|
||||
#include "BKE_image.h"
|
||||
|
||||
#include "IMB_imbuf.h" // for IMB_init
|
||||
#include "IMB_imbuf.h" /* for IMB_init */
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
#include "BPY_extern.h"
|
||||
@@ -130,7 +130,7 @@
|
||||
#include "libmv-capi.h"
|
||||
#endif
|
||||
|
||||
// from buildinfo.c
|
||||
/* from buildinfo.c */
|
||||
#ifdef BUILD_DATE
|
||||
extern char build_date[];
|
||||
extern char build_time[];
|
||||
@@ -466,7 +466,7 @@ static int without_borders(int UNUSED(argc), const char **UNUSED(argv), void *UN
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern int wm_start_with_console; // blender/windowmanager/intern/wm_init_exit.c
|
||||
extern int wm_start_with_console; /* wm_init_exit.c */
|
||||
static int start_with_console(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data))
|
||||
{
|
||||
wm_start_with_console = 1;
|
||||
@@ -1197,7 +1197,7 @@ int main(int argc, const char **argv)
|
||||
fpsetmask(0);
|
||||
#endif
|
||||
|
||||
// initialize path to executable
|
||||
/* initialize path to executable */
|
||||
BLI_init_program_path(argv[0]);
|
||||
|
||||
BLI_threadapi_init();
|
||||
|
Reference in New Issue
Block a user