Blender  V3.3
creator_intern.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
11 struct bArgs;
12 struct bContext;
13 
14 #ifndef WITH_PYTHON_MODULE
15 
16 /* creator_args.c */
17 
18 void main_args_setup(struct bContext *C, struct bArgs *ba);
19 void main_args_setup_post(struct bContext *C, struct bArgs *ba);
20 
21 /* creator_signals.c */
22 
23 void main_signal_setup(void);
25 void main_signal_setup_fpe(void);
26 
27 #endif /* WITH_PYTHON_MODULE */
28 
31  struct {
34  } signal;
35 
36  /* we may want to set different exit codes for other kinds of errors */
37  struct {
38  unsigned char python;
40 };
41 extern struct ApplicationState app_state; /* creator.c */
42 
47 enum {
56 
59 };
60 
61 /* for the callbacks: */
62 #ifndef WITH_PYTHON_MODULE
63 # define BLEND_VERSION_FMT "Blender %d.%d.%d"
64 # define BLEND_VERSION_ARG (BLENDER_VERSION / 100), (BLENDER_VERSION % 100), BLENDER_VERSION_PATCH
65 #endif
66 
67 #ifdef WITH_BUILDINFO_HEADER
68 # define BUILD_DATE
69 #endif
70 
71 /* from buildinfo.c */
72 #ifdef BUILD_DATE
73 extern char build_date[];
74 extern char build_time[];
75 extern char build_hash[];
76 extern unsigned long build_commit_timestamp;
77 
78 /* TODO(sergey): ideally size need to be in sync with buildinfo.c */
79 extern char build_commit_date[16];
80 extern char build_commit_time[16];
81 
82 extern char build_branch[];
83 extern char build_platform[];
84 extern char build_type[];
85 extern char build_cflags[];
86 extern char build_cxxflags[];
87 extern char build_linkflags[];
88 extern char build_system[];
89 #endif /* BUILD_DATE */
#define C
Definition: RandGen.cpp:25
char build_commit_date[16]
Definition: buildinfo.c:33
char build_date[]
Definition: buildinfo.c:29
char build_platform[]
Definition: buildinfo.c:37
char build_linkflags[]
Definition: buildinfo.c:48
void main_signal_setup_background(void)
void main_args_setup_post(struct bContext *C, struct bArgs *ba)
char build_cflags[]
Definition: buildinfo.c:46
char build_time[]
Definition: buildinfo.c:30
struct ApplicationState app_state
Definition: creator.c:102
char build_system[]
Definition: buildinfo.c:49
void main_args_setup(struct bContext *C, struct bArgs *ba)
void main_signal_setup_fpe(void)
char build_branch[]
Definition: buildinfo.c:35
char build_type[]
Definition: buildinfo.c:38
@ ARG_PASS_ENVIRONMENT
@ ARG_PASS_SETTINGS_FORCE
@ ARG_PASS_SETTINGS_GUI
@ ARG_PASS_FINAL
@ ARG_PASS_SETTINGS
void main_signal_setup(void)
char build_commit_time[16]
Definition: buildinfo.c:34
unsigned long build_commit_timestamp
Definition: buildinfo.c:32
char build_hash[]
Definition: buildinfo.c:31
char build_cxxflags[]
Definition: buildinfo.c:47
struct ApplicationState::@1221 signal
struct ApplicationState::@1222 exit_code_on_error
unsigned char python
Definition: BLI_args.c:45