Cleanup: add missing extern "C"
This commit is contained in:
@@ -26,6 +26,10 @@
|
||||
|
||||
#include "BKE_node.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern struct bNodeTreeType *ntreeType_Composite;
|
||||
|
||||
/* ****************** types array for all composite nodes ****************** */
|
||||
@@ -143,4 +147,8 @@ const char *node_cmp_rlayers_sock_to_pass(int sock_index);
|
||||
|
||||
void register_node_type_cmp_custom_group(bNodeType *ntype);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -26,6 +26,10 @@
|
||||
|
||||
#include "BKE_node.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern struct bNodeTreeType *ntreeType_Shader;
|
||||
|
||||
/* the type definitions array */
|
||||
@@ -139,4 +143,8 @@ void register_node_type_sh_tex_white_noise(void);
|
||||
|
||||
void register_node_type_sh_custom_group(bNodeType *ntype);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -26,6 +26,10 @@
|
||||
|
||||
#include "BKE_node.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern struct bNodeTreeType *ntreeType_Texture;
|
||||
|
||||
/* ****************** types array for all texture nodes ****************** */
|
||||
@@ -71,4 +75,8 @@ void register_node_type_tex_proc_noise(void);
|
||||
void register_node_type_tex_proc_stucci(void);
|
||||
void register_node_type_tex_proc_distnoise(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -49,6 +49,10 @@
|
||||
/* only for forward declarations */
|
||||
#include "NOD_composite.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define CMP_SCALE_MAX 12000
|
||||
|
||||
bool cmp_node_poll_default(struct bNodeType *ntype, struct bNodeTree *ntree);
|
||||
@@ -56,4 +60,8 @@ void cmp_node_update_default(struct bNodeTree *UNUSED(ntree), struct bNode *node
|
||||
void cmp_node_type_base(
|
||||
struct bNodeType *ntype, int type, const char *name, short nclass, short flag);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __NODE_COMPOSITE_UTIL_H__ */
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
|
||||
#include "RNA_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct bNode;
|
||||
struct bNodeStack;
|
||||
struct bNodeTree;
|
||||
@@ -98,4 +102,8 @@ struct bNodeTreeExec *ntreeTexBeginExecTree_internal(struct bNodeExecContext *co
|
||||
bNodeInstanceKey parent_key);
|
||||
void ntreeTexEndExecTree_internal(struct bNodeTreeExec *exec);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -69,6 +69,10 @@
|
||||
#include "GPU_texture.h"
|
||||
#include "GPU_uniformbuffer.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
bool sh_node_poll_default(struct bNodeType *ntype, struct bNodeTree *ntree);
|
||||
void sh_node_type_base(
|
||||
struct bNodeType *ntype, int type, const char *name, short nclass, short flag);
|
||||
@@ -101,4 +105,8 @@ void ntreeExecGPUNodes(struct bNodeTreeExec *exec,
|
||||
struct GPUMaterial *mat,
|
||||
struct bNode *output_node);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -64,6 +64,10 @@
|
||||
#include "RE_pipeline.h"
|
||||
#include "RE_shader_ext.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct TexCallData {
|
||||
TexResult *target;
|
||||
/* all float[3] */
|
||||
@@ -124,4 +128,8 @@ void tex_do_preview(bNodePreview *preview,
|
||||
|
||||
void params_from_cdata(TexParams *out, TexCallData *in);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user