From 4e875bc17f57abcbaa30700429b6915e830f9cb7 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Fri, 25 Jul 2025 20:49:26 +0200 Subject: [PATCH] [c] ir-generator now evalutes nullability in spine-cpp based on pointer (nullable) or reference (non-nullable) --- spine-c/codegen/src/c-types.ts | 2 + spine-c/codegen/src/c-writer.ts | 11 +- spine-c/codegen/src/ir-generator.ts | 63 ++- spine-c/codegen/src/types.ts | 32 ++ spine-c/src/generated/alpha_timeline.cpp | 2 +- spine-c/src/generated/alpha_timeline.h | 5 +- spine-c/src/generated/animation.cpp | 8 +- spine-c/src/generated/animation.h | 8 +- spine-c/src/generated/animation_state.cpp | 15 +- spine-c/src/generated/animation_state.h | 18 +- .../src/generated/animation_state_data.cpp | 2 +- spine-c/src/generated/animation_state_data.h | 2 +- spine-c/src/generated/arrays.cpp | 346 +++++++++-------- spine-c/src/generated/arrays.h | 359 +++++++++--------- spine-c/src/generated/atlas.cpp | 6 +- spine-c/src/generated/atlas.h | 6 +- .../src/generated/atlas_attachment_loader.cpp | 28 +- .../src/generated/atlas_attachment_loader.h | 30 +- spine-c/src/generated/atlas_page.cpp | 4 +- spine-c/src/generated/atlas_page.h | 4 +- spine-c/src/generated/atlas_region.cpp | 4 +- spine-c/src/generated/atlas_region.h | 4 +- spine-c/src/generated/attachment_loader.cpp | 17 +- spine-c/src/generated/attachment_loader.h | 24 +- spine-c/src/generated/attachment_timeline.cpp | 5 +- spine-c/src/generated/attachment_timeline.h | 4 +- spine-c/src/generated/bone.cpp | 8 +- spine-c/src/generated/bone.h | 8 +- spine-c/src/generated/bone_data.cpp | 4 +- spine-c/src/generated/bone_data.h | 4 +- spine-c/src/generated/bone_timeline1.cpp | 2 +- spine-c/src/generated/bone_timeline1.h | 5 +- spine-c/src/generated/bone_timeline2.cpp | 2 +- spine-c/src/generated/bone_timeline2.h | 5 +- .../src/generated/bounding_box_attachment.cpp | 7 +- .../src/generated/bounding_box_attachment.h | 6 +- spine-c/src/generated/clipping_attachment.cpp | 10 +- spine-c/src/generated/clipping_attachment.h | 11 +- spine-c/src/generated/color.cpp | 2 +- spine-c/src/generated/color.h | 2 +- .../src/generated/constraint_timeline1.cpp | 5 +- spine-c/src/generated/constraint_timeline1.h | 4 +- spine-c/src/generated/curve_timeline.cpp | 2 +- spine-c/src/generated/curve_timeline.h | 5 +- spine-c/src/generated/curve_timeline1.cpp | 2 +- spine-c/src/generated/curve_timeline1.h | 2 +- spine-c/src/generated/deform_timeline.cpp | 5 +- spine-c/src/generated/deform_timeline.h | 4 +- spine-c/src/generated/draw_order_timeline.cpp | 7 +- spine-c/src/generated/draw_order_timeline.h | 6 +- spine-c/src/generated/event_queue_entry.cpp | 11 +- spine-c/src/generated/event_queue_entry.h | 11 +- spine-c/src/generated/event_timeline.cpp | 4 +- spine-c/src/generated/event_timeline.h | 7 +- spine-c/src/generated/from_property.cpp | 6 +- spine-c/src/generated/from_property.h | 7 +- spine-c/src/generated/from_rotate.cpp | 2 +- spine-c/src/generated/from_rotate.h | 3 +- spine-c/src/generated/from_scale_x.cpp | 2 +- spine-c/src/generated/from_scale_x.h | 3 +- spine-c/src/generated/from_scale_y.cpp | 2 +- spine-c/src/generated/from_scale_y.h | 3 +- spine-c/src/generated/from_shear_y.cpp | 2 +- spine-c/src/generated/from_shear_y.h | 3 +- spine-c/src/generated/from_x.cpp | 2 +- spine-c/src/generated/from_x.h | 2 +- spine-c/src/generated/from_y.cpp | 2 +- spine-c/src/generated/from_y.h | 2 +- spine-c/src/generated/ik_constraint.cpp | 2 +- spine-c/src/generated/ik_constraint.h | 2 +- spine-c/src/generated/ik_constraint_data.cpp | 2 +- spine-c/src/generated/ik_constraint_data.h | 2 +- .../src/generated/ik_constraint_timeline.cpp | 2 +- .../src/generated/ik_constraint_timeline.h | 4 +- spine-c/src/generated/inherit_timeline.cpp | 5 +- spine-c/src/generated/inherit_timeline.h | 2 +- spine-c/src/generated/linked_mesh.cpp | 4 +- spine-c/src/generated/linked_mesh.h | 6 +- spine-c/src/generated/mesh_attachment.cpp | 16 +- spine-c/src/generated/mesh_attachment.h | 16 +- spine-c/src/generated/path_attachment.cpp | 6 +- spine-c/src/generated/path_attachment.h | 6 +- spine-c/src/generated/path_constraint.cpp | 2 +- spine-c/src/generated/path_constraint.h | 2 +- .../src/generated/path_constraint_data.cpp | 2 +- spine-c/src/generated/path_constraint_data.h | 2 +- .../path_constraint_mix_timeline.cpp | 2 +- .../generated/path_constraint_mix_timeline.h | 2 +- .../path_constraint_position_timeline.cpp | 4 +- .../path_constraint_position_timeline.h | 2 +- .../path_constraint_spacing_timeline.cpp | 4 +- .../path_constraint_spacing_timeline.h | 2 +- .../physics_constraint_damping_timeline.cpp | 2 +- .../physics_constraint_damping_timeline.h | 2 +- .../physics_constraint_gravity_timeline.cpp | 2 +- .../physics_constraint_gravity_timeline.h | 2 +- .../physics_constraint_inertia_timeline.cpp | 2 +- .../physics_constraint_inertia_timeline.h | 2 +- .../physics_constraint_mass_timeline.cpp | 4 +- .../physics_constraint_mass_timeline.h | 2 +- .../physics_constraint_mix_timeline.cpp | 4 +- .../physics_constraint_mix_timeline.h | 2 +- .../physics_constraint_reset_timeline.cpp | 4 +- .../physics_constraint_reset_timeline.h | 2 +- .../physics_constraint_strength_timeline.cpp | 2 +- .../physics_constraint_strength_timeline.h | 2 +- .../generated/physics_constraint_timeline.cpp | 2 +- .../generated/physics_constraint_timeline.h | 4 +- .../physics_constraint_wind_timeline.cpp | 4 +- .../physics_constraint_wind_timeline.h | 2 +- spine-c/src/generated/region_attachment.cpp | 8 +- spine-c/src/generated/region_attachment.h | 10 +- spine-c/src/generated/render_command.cpp | 14 +- spine-c/src/generated/render_command.h | 14 +- spine-c/src/generated/rgb2_timeline.cpp | 4 +- spine-c/src/generated/rgb2_timeline.h | 5 +- spine-c/src/generated/rgb_timeline.cpp | 4 +- spine-c/src/generated/rgb_timeline.h | 5 +- spine-c/src/generated/rgba2_timeline.cpp | 2 +- spine-c/src/generated/rgba2_timeline.h | 5 +- spine-c/src/generated/rgba_timeline.cpp | 4 +- spine-c/src/generated/rgba_timeline.h | 5 +- spine-c/src/generated/rotate_timeline.cpp | 2 +- spine-c/src/generated/rotate_timeline.h | 2 +- spine-c/src/generated/rtti.cpp | 2 +- spine-c/src/generated/rtti.h | 2 +- spine-c/src/generated/scale_timeline.cpp | 2 +- spine-c/src/generated/scale_timeline.h | 5 +- spine-c/src/generated/scale_x_timeline.cpp | 5 +- spine-c/src/generated/scale_x_timeline.h | 2 +- spine-c/src/generated/scale_y_timeline.cpp | 5 +- spine-c/src/generated/scale_y_timeline.h | 2 +- spine-c/src/generated/sequence.cpp | 4 +- spine-c/src/generated/sequence.h | 4 +- spine-c/src/generated/sequence_timeline.cpp | 7 +- spine-c/src/generated/sequence_timeline.h | 4 +- spine-c/src/generated/shear_timeline.cpp | 2 +- spine-c/src/generated/shear_timeline.h | 5 +- spine-c/src/generated/shear_x_timeline.cpp | 5 +- spine-c/src/generated/shear_x_timeline.h | 2 +- spine-c/src/generated/shear_y_timeline.cpp | 5 +- spine-c/src/generated/shear_y_timeline.h | 2 +- spine-c/src/generated/skeleton.cpp | 32 +- spine-c/src/generated/skeleton.h | 32 +- spine-c/src/generated/skeleton_binary.cpp | 9 +- spine-c/src/generated/skeleton_binary.h | 9 +- spine-c/src/generated/skeleton_bounds.cpp | 13 +- spine-c/src/generated/skeleton_bounds.h | 15 +- spine-c/src/generated/skeleton_clipping.cpp | 10 +- spine-c/src/generated/skeleton_clipping.h | 11 +- spine-c/src/generated/skeleton_data.cpp | 26 +- spine-c/src/generated/skeleton_data.h | 26 +- spine-c/src/generated/skeleton_json.cpp | 8 +- spine-c/src/generated/skeleton_json.h | 8 +- spine-c/src/generated/skeleton_renderer.cpp | 2 +- spine-c/src/generated/skeleton_renderer.h | 2 +- spine-c/src/generated/skin.cpp | 8 +- spine-c/src/generated/skin.h | 8 +- spine-c/src/generated/slider_data.cpp | 8 +- spine-c/src/generated/slider_data.h | 8 +- spine-c/src/generated/slider_mix_timeline.cpp | 5 +- spine-c/src/generated/slider_mix_timeline.h | 4 +- spine-c/src/generated/slider_timeline.cpp | 2 +- spine-c/src/generated/slider_timeline.h | 2 +- spine-c/src/generated/slot_curve_timeline.cpp | 5 +- spine-c/src/generated/slot_curve_timeline.h | 4 +- spine-c/src/generated/slot_pose.cpp | 4 +- spine-c/src/generated/slot_pose.h | 4 +- spine-c/src/generated/timeline.cpp | 2 +- spine-c/src/generated/timeline.h | 2 +- spine-c/src/generated/track_entry.cpp | 10 +- spine-c/src/generated/track_entry.h | 10 +- .../src/generated/transform_constraint.cpp | 2 +- spine-c/src/generated/transform_constraint.h | 2 +- .../generated/transform_constraint_data.cpp | 4 +- .../src/generated/transform_constraint_data.h | 4 +- .../transform_constraint_timeline.cpp | 2 +- .../generated/transform_constraint_timeline.h | 2 +- spine-c/src/generated/translate_timeline.cpp | 5 +- spine-c/src/generated/translate_timeline.h | 4 +- .../src/generated/translate_x_timeline.cpp | 5 +- spine-c/src/generated/translate_x_timeline.h | 4 +- .../src/generated/translate_y_timeline.cpp | 5 +- spine-c/src/generated/translate_y_timeline.h | 4 +- spine-c/src/generated/vertex_attachment.cpp | 6 +- spine-c/src/generated/vertex_attachment.h | 7 +- spine-c/tests/headless-test.c | 2 +- 187 files changed, 991 insertions(+), 851 deletions(-) diff --git a/spine-c/codegen/src/c-types.ts b/spine-c/codegen/src/c-types.ts index ea3c69336..ec36f9320 100644 --- a/spine-c/codegen/src/c-types.ts +++ b/spine-c/codegen/src/c-types.ts @@ -5,6 +5,7 @@ export interface CParameter { cType: string; // C type (e.g., "float*", "spine_bone") cppType: string; // Original C++ type (e.g., "float&", "Bone*") isOutput: boolean; // true for non-const references that become output params + isNullable: boolean; // true for pointer types (can be null), false for references/values } export interface CMethod { @@ -12,6 +13,7 @@ export interface CMethod { returnType: string; // C return type parameters: CParameter[]; body: string; // The actual implementation code (e.g., "return ((Bone*)self)->getX();") + returnTypeNullable: boolean; // true if return type can be null (pointer types) } export interface CClassOrStruct { diff --git a/spine-c/codegen/src/c-writer.ts b/spine-c/codegen/src/c-writer.ts index 3bf43ca89..e4471fafa 100644 --- a/spine-c/codegen/src/c-writer.ts +++ b/spine-c/codegen/src/c-writer.ts @@ -150,12 +150,14 @@ export class CWriter { private writeMethodDeclaration(method: CMethod): string { const params = this.formatParameters(method.parameters); - return `SPINE_C_API ${method.returnType} ${method.name}(${params});`; + const returnTypeWithAnnotation = method.returnTypeNullable ? `/*@null*/ ${method.returnType}` : method.returnType; + return `SPINE_C_API ${returnTypeWithAnnotation} ${method.name}(${params});`; } private writeMethodImplementation(method: CMethod): string { const params = this.formatParameters(method.parameters); - const signature = `${method.returnType} ${method.name}(${params})`; + const returnTypeWithAnnotation = method.returnTypeNullable ? `/*@null*/ ${method.returnType}` : method.returnType; + const signature = `${returnTypeWithAnnotation} ${method.name}(${params})`; return `${signature} { ${method.body} @@ -168,7 +170,10 @@ export class CWriter { } return parameters - .map(p => `${p.cType} ${p.name}`) + .map(p => { + const typeWithAnnotation = p.isNullable ? `/*@null*/ ${p.cType}` : p.cType; + return `${typeWithAnnotation} ${p.name}`; + }) .join(', '); } diff --git a/spine-c/codegen/src/ir-generator.ts b/spine-c/codegen/src/ir-generator.ts index c85599e82..f7140acd6 100644 --- a/spine-c/codegen/src/ir-generator.ts +++ b/spine-c/codegen/src/ir-generator.ts @@ -2,7 +2,7 @@ import { scanArraySpecializations } from './array-scanner'; import type { CClassOrStruct, CEnum, CEnumValue, CMethod, CParameter } from './c-types'; import { isFieldExcluded, isFieldGetterExcluded, isFieldSetterExcluded } from './exclusions'; import type { ArraySpecialization, Exclusion } from './types'; -import { type ClassOrStruct, type Constructor, checkTypeSupport, type Enum, type Field, isPrimitive, type Method, type Parameter, type Type, toCFunctionName, toCTypeName, toSnakeCase } from './types'; +import { type ClassOrStruct, type Constructor, checkTypeSupport, type Enum, type Field, isPrimitive, isNullable, type Method, type Parameter, type Type, toCFunctionName, toCTypeName, toSnakeCase } from './types'; /** * Checks if a type inherits from SpineObject (directly or indirectly) @@ -103,7 +103,8 @@ export function generateConstructors(type: ClassOrStruct, knownTypeNames: Set name: `${cTypeName}_rtti`, returnType: 'spine_rtti', parameters: [], - body: `return (spine_rtti)&${cppTypeName}::rtti;` + body: `return (spine_rtti)&${cppTypeName}::rtti;`, + returnTypeNullable: false // RTTI method returns a reference address, never null }); } @@ -270,9 +275,11 @@ export function generateFieldAccessors(type: ClassOrStruct, knownTypeNames: Set< name: 'self', cType: cTypeName, cppType: `${cppTypeName}*`, - isOutput: false + isOutput: false, + isNullable: false // Self parameter must never be null (would crash) }], - body: generateFieldGetterBody(field, cppTypeName, knownTypeNames) + body: generateFieldGetterBody(field, cppTypeName, knownTypeNames), + returnTypeNullable: isNullable(field.type) // Field return type nullability depends on field type }); } catch (e) { console.warn(` Skipping getter for field ${type.name}::${field.name}: ${e}`); @@ -295,16 +302,19 @@ export function generateFieldAccessors(type: ClassOrStruct, knownTypeNames: Set< name: 'self', cType: cTypeName, cppType: `${cppTypeName}*`, - isOutput: false + isOutput: false, + isNullable: false // Self parameter must never be null (would crash) }, { name: 'value', cType: cParamType, cppType: field.type, - isOutput: false + isOutput: false, + isNullable: isNullable(field.type) // Value parameter nullability depends on field type } ], - body: generateFieldSetterBody(field, cppTypeName, knownTypeNames) + body: generateFieldSetterBody(field, cppTypeName, knownTypeNames), + returnTypeNullable: false // void return type cannot be null }); } catch (e) { console.warn(` Skipping setter for field ${type.name}::${field.name}: ${e}`); @@ -413,7 +423,8 @@ export function generateArrayType(spec: ArraySpecialization, arrayType: ClassOrS name: `${cTypeName}_create`, returnType: cTypeName, parameters: [], - body: `return (${cTypeName}) new (__FILE__, __LINE__) Array<${spec.elementType}>();` + body: `return (${cTypeName}) new (__FILE__, __LINE__) Array<${spec.elementType}>();`, + returnTypeNullable: false // Array constructors never return null on success }, { name: `${cTypeName}_create_with_capacity`, @@ -422,9 +433,11 @@ export function generateArrayType(spec: ArraySpecialization, arrayType: ClassOrS name: 'initialCapacity', cType: 'size_t', cppType: 'size_t', - isOutput: false + isOutput: false, + isNullable: false // size_t cannot be null }], - body: `return (${cTypeName}) new (__FILE__, __LINE__) Array<${spec.elementType}>(initialCapacity);` + body: `return (${cTypeName}) new (__FILE__, __LINE__) Array<${spec.elementType}>(initialCapacity);`, + returnTypeNullable: false // Array constructors never return null on success } ]; @@ -436,9 +449,11 @@ export function generateArrayType(spec: ArraySpecialization, arrayType: ClassOrS name: 'array', cType: cTypeName, cppType: `Array<${spec.elementType}>*`, - isOutput: false + isOutput: false, + isNullable: false // Array parameter must never be null (would crash) }], - body: `delete (Array<${spec.elementType}>*)array;` + body: `delete (Array<${spec.elementType}>*)array;`, + returnTypeNullable: false // void return type cannot be null }; // Generate array methods @@ -529,12 +544,14 @@ function convertParameters(params: Parameter[], knownTypeNames: Set): CP for (const param of params) { const cType = toCTypeName(param.type, knownTypeNames); const isOutput = isOutputParameter(param.type); + const paramIsNullable = isNullable(param.type); cParams.push({ name: param.name, cType, cppType: param.type, - isOutput + isOutput, + isNullable: paramIsNullable }); } @@ -650,7 +667,8 @@ function generateMethod(type: ClassOrStruct, method: Method, cTypeName: string, name: 'self', cType: cTypeName, cppType: `${cppTypeName}*`, - isOutput: false + isOutput: false, + isNullable: false // Self parameter must never be null (would crash) }); } @@ -680,7 +698,8 @@ function generateMethod(type: ClassOrStruct, method: Method, cTypeName: string, name: cMethodName, returnType: cReturnType, parameters: cParams, - body + body, + returnTypeNullable: isNullable(method.returnType) }; } catch (e) { console.warn(`Skipping method ${type.name}::${method.name}: ${e}`); @@ -807,7 +826,8 @@ function generateArrayMethod(cTypeName: string, method: Method, cppElementType: name: 'array', cType: cTypeName, cppType: `Array<${cppElementType}>*`, - isOutput: false + isOutput: false, + isNullable: false // Array parameter must never be null (would crash) }); // Add method parameters @@ -822,7 +842,8 @@ function generateArrayMethod(cTypeName: string, method: Method, cppElementType: name: cMethodName, returnType: cReturnType, parameters: cParams, - body + body, + returnTypeNullable: isNullable(method.returnType) }; } catch (e) { console.warn(`Skipping array method ${method.name}: ${e}`); diff --git a/spine-c/codegen/src/types.ts b/spine-c/codegen/src/types.ts index 0f28d8249..63bf534f6 100644 --- a/spine-c/codegen/src/types.ts +++ b/spine-c/codegen/src/types.ts @@ -298,6 +298,38 @@ export function toCTypeName(cppType: string, knownTypeNames: Set): strin return `spine_${toSnakeCase(normalizedType)}`; } +/** + * Determines if a C++ type represents a nullable value (pointer types). + * Based on spine-cpp convention: pointers are nullable, references are not. + * + * @param cppType The C++ type to check + * @returns true if the type can be null (pointer types), false otherwise + * + * Examples: + * - "Bone*" → true (pointer, can be null) + * - "const Bone*" → true (pointer, can be null) + * - "Bone&" → false (reference, cannot be null) + * - "const Bone&" → false (reference, cannot be null) + * - "int" → false (value type, cannot be null) + * - "float*" → true (pointer to primitive, can be null) + */ +export function isNullable(cppType: string): boolean { + const normalizedType = cppType.replace(/\s+/g, ' ').trim(); + + // Pointer types are nullable + if (normalizedType.includes('*')) { + return true; + } + + // Reference types are NOT nullable + if (normalizedType.includes('&')) { + return false; + } + + // Value types and primitives are NOT nullable + return false; +} + /** * Checks if a C++ type can be represented in the C API. * Returns null if the type can be handled, or an error message if not. diff --git a/spine-c/src/generated/alpha_timeline.cpp b/spine-c/src/generated/alpha_timeline.cpp index 74394627f..f314da901 100644 --- a/spine-c/src/generated/alpha_timeline.cpp +++ b/spine-c/src/generated/alpha_timeline.cpp @@ -16,7 +16,7 @@ spine_rtti spine_alpha_timeline_get_rtti(spine_alpha_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_alpha_timeline_apply(spine_alpha_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_alpha_timeline_apply(spine_alpha_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { AlphaTimeline *_self = (AlphaTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/alpha_timeline.h b/spine-c/src/generated/alpha_timeline.h index c6eff2215..faf38ba4f 100644 --- a/spine-c/src/generated/alpha_timeline.h +++ b/spine-c/src/generated/alpha_timeline.h @@ -14,8 +14,9 @@ SPINE_C_API spine_alpha_timeline spine_alpha_timeline_create(size_t frameCount, SPINE_C_API void spine_alpha_timeline_dispose(spine_alpha_timeline self); SPINE_C_API spine_rtti spine_alpha_timeline_get_rtti(spine_alpha_timeline self); -SPINE_C_API void spine_alpha_timeline_apply(spine_alpha_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_alpha_timeline_apply(spine_alpha_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API int spine_alpha_timeline_get_slot_index(spine_alpha_timeline self); SPINE_C_API void spine_alpha_timeline_set_slot_index(spine_alpha_timeline self, int inValue); SPINE_C_API void spine_alpha_timeline_set_frame(spine_alpha_timeline self, size_t frame, float time, float value); diff --git a/spine-c/src/generated/animation.cpp b/spine-c/src/generated/animation.cpp index 8b5fdcee4..cbb6b433f 100644 --- a/spine-c/src/generated/animation.cpp +++ b/spine-c/src/generated/animation.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_animation spine_animation_create(const char *name, spine_array_timeline timelines, float duration) { +spine_animation spine_animation_create(const char *name, /*@null*/ spine_array_timeline timelines, float duration) { return (spine_animation) new (__FILE__, __LINE__) Animation(String(name), *((Array *) timelines), duration); } @@ -11,12 +11,12 @@ void spine_animation_dispose(spine_animation self) { delete (Animation *) self; } -spine_array_timeline spine_animation_get_timelines(spine_animation self) { +/*@null*/ spine_array_timeline spine_animation_get_timelines(spine_animation self) { Animation *_self = (Animation *) self; return (spine_array_timeline) &_self->getTimelines(); } -void spine_animation_set_timelines(spine_animation self, spine_array_timeline timelines) { +void spine_animation_set_timelines(spine_animation self, /*@null*/ spine_array_timeline timelines) { Animation *_self = (Animation *) self; _self->setTimelines(*((Array *) timelines)); } @@ -36,7 +36,7 @@ void spine_animation_set_duration(spine_animation self, float inValue) { _self->setDuration(inValue); } -void spine_animation_apply(spine_animation self, spine_skeleton skeleton, float lastTime, float time, bool loop, spine_array_event pEvents, +void spine_animation_apply(spine_animation self, spine_skeleton skeleton, float lastTime, float time, bool loop, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { Animation *_self = (Animation *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, loop, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/animation.h b/spine-c/src/generated/animation.h index 10564374d..8e78c5b8d 100644 --- a/spine-c/src/generated/animation.h +++ b/spine-c/src/generated/animation.h @@ -9,17 +9,17 @@ extern "C" { #endif -SPINE_C_API spine_animation spine_animation_create(const char *name, spine_array_timeline timelines, float duration); +SPINE_C_API spine_animation spine_animation_create(const char *name, /*@null*/ spine_array_timeline timelines, float duration); SPINE_C_API void spine_animation_dispose(spine_animation self); -SPINE_C_API spine_array_timeline spine_animation_get_timelines(spine_animation self); -SPINE_C_API void spine_animation_set_timelines(spine_animation self, spine_array_timeline timelines); +SPINE_C_API /*@null*/ spine_array_timeline spine_animation_get_timelines(spine_animation self); +SPINE_C_API void spine_animation_set_timelines(spine_animation self, /*@null*/ spine_array_timeline timelines); SPINE_C_API bool spine_animation_has_timeline(spine_animation self, spine_array_property_id ids); SPINE_C_API float spine_animation_get_duration(spine_animation self); SPINE_C_API void spine_animation_set_duration(spine_animation self, float inValue); SPINE_C_API void spine_animation_apply(spine_animation self, spine_skeleton skeleton, float lastTime, float time, bool loop, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API const char *spine_animation_get_name(spine_animation self); SPINE_C_API spine_array_int spine_animation_get_bones(spine_animation self); diff --git a/spine-c/src/generated/animation_state.cpp b/spine-c/src/generated/animation_state.cpp index a5cd2c351..8ae95a364 100644 --- a/spine-c/src/generated/animation_state.cpp +++ b/spine-c/src/generated/animation_state.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_animation_state spine_animation_state_create(spine_animation_state_data data) { +spine_animation_state spine_animation_state_create(/*@null*/ spine_animation_state_data data) { return (spine_animation_state) new (__FILE__, __LINE__) AnimationState((AnimationStateData *) data); } @@ -36,7 +36,8 @@ spine_track_entry spine_animation_state_set_animation_1(spine_animation_state se return (spine_track_entry) &_self->setAnimation(trackIndex, String(animationName), loop); } -spine_track_entry spine_animation_state_set_animation_2(spine_animation_state self, size_t trackIndex, spine_animation animation, bool loop) { +spine_track_entry spine_animation_state_set_animation_2(spine_animation_state self, size_t trackIndex, /*@null*/ spine_animation animation, + bool loop) { AnimationState *_self = (AnimationState *) self; return (spine_track_entry) &_self->setAnimation(trackIndex, (Animation *) animation, loop); } @@ -47,7 +48,7 @@ spine_track_entry spine_animation_state_add_animation_1(spine_animation_state se return (spine_track_entry) &_self->addAnimation(trackIndex, String(animationName), loop, delay); } -spine_track_entry spine_animation_state_add_animation_2(spine_animation_state self, size_t trackIndex, spine_animation animation, bool loop, +spine_track_entry spine_animation_state_add_animation_2(spine_animation_state self, size_t trackIndex, /*@null*/ spine_animation animation, bool loop, float delay) { AnimationState *_self = (AnimationState *) self; return (spine_track_entry) &_self->addAnimation(trackIndex, (Animation *) animation, loop, delay); @@ -68,7 +69,7 @@ void spine_animation_state_set_empty_animations(spine_animation_state self, floa _self->setEmptyAnimations(mixDuration); } -spine_track_entry spine_animation_state_get_current(spine_animation_state self, size_t trackIndex) { +/*@null*/ spine_track_entry spine_animation_state_get_current(spine_animation_state self, size_t trackIndex) { AnimationState *_self = (AnimationState *) self; return (spine_track_entry) _self->getCurrent(trackIndex); } @@ -78,7 +79,7 @@ spine_animation_state_data spine_animation_state_get_data(spine_animation_state return (spine_animation_state_data) &_self->getData(); } -spine_array_track_entry spine_animation_state_get_tracks(spine_animation_state self) { +/*@null*/ spine_array_track_entry spine_animation_state_get_tracks(spine_animation_state self) { AnimationState *_self = (AnimationState *) self; return (spine_array_track_entry) &_self->getTracks(); } @@ -113,12 +114,12 @@ bool spine_animation_state_get_manual_track_entry_disposal(spine_animation_state return _self->getManualTrackEntryDisposal(); } -void spine_animation_state_dispose_track_entry(spine_animation_state self, spine_track_entry entry) { +void spine_animation_state_dispose_track_entry(spine_animation_state self, /*@null*/ spine_track_entry entry) { AnimationState *_self = (AnimationState *) self; _self->disposeTrackEntry((TrackEntry *) entry); } -void *spine_animation_state_get_renderer_object(spine_animation_state self) { +/*@null*/ void *spine_animation_state_get_renderer_object(spine_animation_state self) { HasRendererObject *_self = (HasRendererObject *) (AnimationState *) self; return _self->getRendererObject(); } diff --git a/spine-c/src/generated/animation_state.h b/spine-c/src/generated/animation_state.h index ab2bcc2f5..3e63ca4c0 100644 --- a/spine-c/src/generated/animation_state.h +++ b/spine-c/src/generated/animation_state.h @@ -9,7 +9,7 @@ extern "C" { #endif -SPINE_C_API spine_animation_state spine_animation_state_create(spine_animation_state_data data); +SPINE_C_API spine_animation_state spine_animation_state_create(/*@null*/ spine_animation_state_data data); SPINE_C_API void spine_animation_state_dispose(spine_animation_state self); @@ -19,27 +19,27 @@ SPINE_C_API void spine_animation_state_clear_tracks(spine_animation_state self); SPINE_C_API void spine_animation_state_clear_track(spine_animation_state self, size_t trackIndex); SPINE_C_API spine_track_entry spine_animation_state_set_animation_1(spine_animation_state self, size_t trackIndex, const char *animationName, bool loop); -SPINE_C_API spine_track_entry spine_animation_state_set_animation_2(spine_animation_state self, size_t trackIndex, spine_animation animation, - bool loop); +SPINE_C_API spine_track_entry spine_animation_state_set_animation_2(spine_animation_state self, size_t trackIndex, + /*@null*/ spine_animation animation, bool loop); SPINE_C_API spine_track_entry spine_animation_state_add_animation_1(spine_animation_state self, size_t trackIndex, const char *animationName, bool loop, float delay); -SPINE_C_API spine_track_entry spine_animation_state_add_animation_2(spine_animation_state self, size_t trackIndex, spine_animation animation, - bool loop, float delay); +SPINE_C_API spine_track_entry spine_animation_state_add_animation_2(spine_animation_state self, size_t trackIndex, + /*@null*/ spine_animation animation, bool loop, float delay); SPINE_C_API spine_track_entry spine_animation_state_set_empty_animation(spine_animation_state self, size_t trackIndex, float mixDuration); SPINE_C_API spine_track_entry spine_animation_state_add_empty_animation(spine_animation_state self, size_t trackIndex, float mixDuration, float delay); SPINE_C_API void spine_animation_state_set_empty_animations(spine_animation_state self, float mixDuration); -SPINE_C_API spine_track_entry spine_animation_state_get_current(spine_animation_state self, size_t trackIndex); +SPINE_C_API /*@null*/ spine_track_entry spine_animation_state_get_current(spine_animation_state self, size_t trackIndex); SPINE_C_API spine_animation_state_data spine_animation_state_get_data(spine_animation_state self); -SPINE_C_API spine_array_track_entry spine_animation_state_get_tracks(spine_animation_state self); +SPINE_C_API /*@null*/ spine_array_track_entry spine_animation_state_get_tracks(spine_animation_state self); SPINE_C_API float spine_animation_state_get_time_scale(spine_animation_state self); SPINE_C_API void spine_animation_state_set_time_scale(spine_animation_state self, float inValue); SPINE_C_API void spine_animation_state_disable_queue(spine_animation_state self); SPINE_C_API void spine_animation_state_enable_queue(spine_animation_state self); SPINE_C_API void spine_animation_state_set_manual_track_entry_disposal(spine_animation_state self, bool inValue); SPINE_C_API bool spine_animation_state_get_manual_track_entry_disposal(spine_animation_state self); -SPINE_C_API void spine_animation_state_dispose_track_entry(spine_animation_state self, spine_track_entry entry); -SPINE_C_API void *spine_animation_state_get_renderer_object(spine_animation_state self); +SPINE_C_API void spine_animation_state_dispose_track_entry(spine_animation_state self, /*@null*/ spine_track_entry entry); +SPINE_C_API /*@null*/ void *spine_animation_state_get_renderer_object(spine_animation_state self); #ifdef __cplusplus } diff --git a/spine-c/src/generated/animation_state_data.cpp b/spine-c/src/generated/animation_state_data.cpp index 36e047dfb..453ac0b1e 100644 --- a/spine-c/src/generated/animation_state_data.cpp +++ b/spine-c/src/generated/animation_state_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_animation_state_data spine_animation_state_data_create(spine_skeleton_data skeletonData) { +spine_animation_state_data spine_animation_state_data_create(/*@null*/ spine_skeleton_data skeletonData) { return (spine_animation_state_data) new (__FILE__, __LINE__) AnimationStateData((SkeletonData *) skeletonData); } diff --git a/spine-c/src/generated/animation_state_data.h b/spine-c/src/generated/animation_state_data.h index 58b64ced8..87e548e3f 100644 --- a/spine-c/src/generated/animation_state_data.h +++ b/spine-c/src/generated/animation_state_data.h @@ -9,7 +9,7 @@ extern "C" { #endif -SPINE_C_API spine_animation_state_data spine_animation_state_data_create(spine_skeleton_data skeletonData); +SPINE_C_API spine_animation_state_data spine_animation_state_data_create(/*@null*/ spine_skeleton_data skeletonData); SPINE_C_API void spine_animation_state_data_dispose(spine_animation_state_data self); diff --git a/spine-c/src/generated/arrays.cpp b/spine-c/src/generated/arrays.cpp index 0f4ff4871..ba1da1838 100644 --- a/spine-c/src/generated/arrays.cpp +++ b/spine-c/src/generated/arrays.cpp @@ -97,7 +97,7 @@ int spine_array_float_index_of(spine_array_float array, float inValue) { return _array->indexOf(inValue); } -float *spine_array_float_buffer(spine_array_float array) { +/*@null*/ float *spine_array_float_buffer(spine_array_float array) { Array *_array = (Array *) array; return _array->buffer(); } @@ -167,7 +167,7 @@ int spine_array_int_index_of(spine_array_int array, int inValue) { return _array->indexOf(inValue); } -int *spine_array_int_buffer(spine_array_int array) { +/*@null*/ int *spine_array_int_buffer(spine_array_int array) { Array *_array = (Array *) array; return _array->buffer(); } @@ -237,7 +237,7 @@ int spine_array_unsigned_short_index_of(spine_array_unsigned_short array, unsign return _array->indexOf(inValue); } -unsigned short *spine_array_unsigned_short_buffer(spine_array_unsigned_short array) { +/*@null*/ unsigned short *spine_array_unsigned_short_buffer(spine_array_unsigned_short array) { Array *_array = (Array *) array; return _array->buffer(); } @@ -307,7 +307,7 @@ int spine_array_property_id_index_of(spine_array_property_id array, int64_t inVa return _array->indexOf(*((const PropertyId *) inValue)); } -int64_t *spine_array_property_id_buffer(spine_array_property_id array) { +/*@null*/ int64_t *spine_array_property_id_buffer(spine_array_property_id array) { Array *_array = (Array *) array; return (int64_t *) _array->buffer(); } @@ -337,7 +337,7 @@ size_t spine_array_animation_size(spine_array_animation array) { return _array->size(); } -spine_array_animation spine_array_animation_set_size(spine_array_animation array, size_t newSize, spine_animation defaultValue) { +/*@null*/ spine_array_animation spine_array_animation_set_size(spine_array_animation array, size_t newSize, /*@null*/ spine_animation defaultValue) { Array *_array = (Array *) array; return (spine_array_animation) &_array->setSize(newSize, (Animation *) defaultValue); } @@ -347,17 +347,17 @@ void spine_array_animation_ensure_capacity(spine_array_animation array, size_t n _array->ensureCapacity(newCapacity); } -void spine_array_animation_add(spine_array_animation array, spine_animation inValue) { +void spine_array_animation_add(spine_array_animation array, /*@null*/ spine_animation inValue) { Array *_array = (Array *) array; _array->add((Animation *) inValue); } -void spine_array_animation_add_all(spine_array_animation array, spine_array_animation inValue) { +void spine_array_animation_add_all(spine_array_animation array, /*@null*/ spine_array_animation inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_animation_clear_and_add_all(spine_array_animation array, spine_array_animation inValue) { +void spine_array_animation_clear_and_add_all(spine_array_animation array, /*@null*/ spine_array_animation inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -367,17 +367,17 @@ void spine_array_animation_remove_at(spine_array_animation array, size_t inIndex _array->removeAt(inIndex); } -bool spine_array_animation_contains(spine_array_animation array, spine_animation inValue) { +bool spine_array_animation_contains(spine_array_animation array, /*@null*/ spine_animation inValue) { Array *_array = (Array *) array; return _array->contains((Animation *) inValue); } -int spine_array_animation_index_of(spine_array_animation array, spine_animation inValue) { +int spine_array_animation_index_of(spine_array_animation array, /*@null*/ spine_animation inValue) { Array *_array = (Array *) array; return _array->indexOf((Animation *) inValue); } -spine_animation *spine_array_animation_buffer(spine_array_animation array) { +/*@null*/ spine_animation *spine_array_animation_buffer(spine_array_animation array) { Array *_array = (Array *) array; return (spine_animation *) _array->buffer(); } @@ -407,7 +407,8 @@ size_t spine_array_atlas_page_size(spine_array_atlas_page array) { return _array->size(); } -spine_array_atlas_page spine_array_atlas_page_set_size(spine_array_atlas_page array, size_t newSize, spine_atlas_page defaultValue) { +/*@null*/ spine_array_atlas_page spine_array_atlas_page_set_size(spine_array_atlas_page array, size_t newSize, + /*@null*/ spine_atlas_page defaultValue) { Array *_array = (Array *) array; return (spine_array_atlas_page) &_array->setSize(newSize, (AtlasPage *) defaultValue); } @@ -417,17 +418,17 @@ void spine_array_atlas_page_ensure_capacity(spine_array_atlas_page array, size_t _array->ensureCapacity(newCapacity); } -void spine_array_atlas_page_add(spine_array_atlas_page array, spine_atlas_page inValue) { +void spine_array_atlas_page_add(spine_array_atlas_page array, /*@null*/ spine_atlas_page inValue) { Array *_array = (Array *) array; _array->add((AtlasPage *) inValue); } -void spine_array_atlas_page_add_all(spine_array_atlas_page array, spine_array_atlas_page inValue) { +void spine_array_atlas_page_add_all(spine_array_atlas_page array, /*@null*/ spine_array_atlas_page inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_atlas_page_clear_and_add_all(spine_array_atlas_page array, spine_array_atlas_page inValue) { +void spine_array_atlas_page_clear_and_add_all(spine_array_atlas_page array, /*@null*/ spine_array_atlas_page inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -437,17 +438,17 @@ void spine_array_atlas_page_remove_at(spine_array_atlas_page array, size_t inInd _array->removeAt(inIndex); } -bool spine_array_atlas_page_contains(spine_array_atlas_page array, spine_atlas_page inValue) { +bool spine_array_atlas_page_contains(spine_array_atlas_page array, /*@null*/ spine_atlas_page inValue) { Array *_array = (Array *) array; return _array->contains((AtlasPage *) inValue); } -int spine_array_atlas_page_index_of(spine_array_atlas_page array, spine_atlas_page inValue) { +int spine_array_atlas_page_index_of(spine_array_atlas_page array, /*@null*/ spine_atlas_page inValue) { Array *_array = (Array *) array; return _array->indexOf((AtlasPage *) inValue); } -spine_atlas_page *spine_array_atlas_page_buffer(spine_array_atlas_page array) { +/*@null*/ spine_atlas_page *spine_array_atlas_page_buffer(spine_array_atlas_page array) { Array *_array = (Array *) array; return (spine_atlas_page *) _array->buffer(); } @@ -477,7 +478,8 @@ size_t spine_array_atlas_region_size(spine_array_atlas_region array) { return _array->size(); } -spine_array_atlas_region spine_array_atlas_region_set_size(spine_array_atlas_region array, size_t newSize, spine_atlas_region defaultValue) { +/*@null*/ spine_array_atlas_region spine_array_atlas_region_set_size(spine_array_atlas_region array, size_t newSize, + /*@null*/ spine_atlas_region defaultValue) { Array *_array = (Array *) array; return (spine_array_atlas_region) &_array->setSize(newSize, (AtlasRegion *) defaultValue); } @@ -487,17 +489,17 @@ void spine_array_atlas_region_ensure_capacity(spine_array_atlas_region array, si _array->ensureCapacity(newCapacity); } -void spine_array_atlas_region_add(spine_array_atlas_region array, spine_atlas_region inValue) { +void spine_array_atlas_region_add(spine_array_atlas_region array, /*@null*/ spine_atlas_region inValue) { Array *_array = (Array *) array; _array->add((AtlasRegion *) inValue); } -void spine_array_atlas_region_add_all(spine_array_atlas_region array, spine_array_atlas_region inValue) { +void spine_array_atlas_region_add_all(spine_array_atlas_region array, /*@null*/ spine_array_atlas_region inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_atlas_region_clear_and_add_all(spine_array_atlas_region array, spine_array_atlas_region inValue) { +void spine_array_atlas_region_clear_and_add_all(spine_array_atlas_region array, /*@null*/ spine_array_atlas_region inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -507,17 +509,17 @@ void spine_array_atlas_region_remove_at(spine_array_atlas_region array, size_t i _array->removeAt(inIndex); } -bool spine_array_atlas_region_contains(spine_array_atlas_region array, spine_atlas_region inValue) { +bool spine_array_atlas_region_contains(spine_array_atlas_region array, /*@null*/ spine_atlas_region inValue) { Array *_array = (Array *) array; return _array->contains((AtlasRegion *) inValue); } -int spine_array_atlas_region_index_of(spine_array_atlas_region array, spine_atlas_region inValue) { +int spine_array_atlas_region_index_of(spine_array_atlas_region array, /*@null*/ spine_atlas_region inValue) { Array *_array = (Array *) array; return _array->indexOf((AtlasRegion *) inValue); } -spine_atlas_region *spine_array_atlas_region_buffer(spine_array_atlas_region array) { +/*@null*/ spine_atlas_region *spine_array_atlas_region_buffer(spine_array_atlas_region array) { Array *_array = (Array *) array; return (spine_atlas_region *) _array->buffer(); } @@ -547,7 +549,8 @@ size_t spine_array_attachment_size(spine_array_attachment array) { return _array->size(); } -spine_array_attachment spine_array_attachment_set_size(spine_array_attachment array, size_t newSize, spine_attachment defaultValue) { +/*@null*/ spine_array_attachment spine_array_attachment_set_size(spine_array_attachment array, size_t newSize, + /*@null*/ spine_attachment defaultValue) { Array *_array = (Array *) array; return (spine_array_attachment) &_array->setSize(newSize, (Attachment *) defaultValue); } @@ -557,17 +560,17 @@ void spine_array_attachment_ensure_capacity(spine_array_attachment array, size_t _array->ensureCapacity(newCapacity); } -void spine_array_attachment_add(spine_array_attachment array, spine_attachment inValue) { +void spine_array_attachment_add(spine_array_attachment array, /*@null*/ spine_attachment inValue) { Array *_array = (Array *) array; _array->add((Attachment *) inValue); } -void spine_array_attachment_add_all(spine_array_attachment array, spine_array_attachment inValue) { +void spine_array_attachment_add_all(spine_array_attachment array, /*@null*/ spine_array_attachment inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_attachment_clear_and_add_all(spine_array_attachment array, spine_array_attachment inValue) { +void spine_array_attachment_clear_and_add_all(spine_array_attachment array, /*@null*/ spine_array_attachment inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -577,17 +580,17 @@ void spine_array_attachment_remove_at(spine_array_attachment array, size_t inInd _array->removeAt(inIndex); } -bool spine_array_attachment_contains(spine_array_attachment array, spine_attachment inValue) { +bool spine_array_attachment_contains(spine_array_attachment array, /*@null*/ spine_attachment inValue) { Array *_array = (Array *) array; return _array->contains((Attachment *) inValue); } -int spine_array_attachment_index_of(spine_array_attachment array, spine_attachment inValue) { +int spine_array_attachment_index_of(spine_array_attachment array, /*@null*/ spine_attachment inValue) { Array *_array = (Array *) array; return _array->indexOf((Attachment *) inValue); } -spine_attachment *spine_array_attachment_buffer(spine_array_attachment array) { +/*@null*/ spine_attachment *spine_array_attachment_buffer(spine_array_attachment array) { Array *_array = (Array *) array; return (spine_attachment *) _array->buffer(); } @@ -617,7 +620,7 @@ size_t spine_array_bone_size(spine_array_bone array) { return _array->size(); } -spine_array_bone spine_array_bone_set_size(spine_array_bone array, size_t newSize, spine_bone defaultValue) { +/*@null*/ spine_array_bone spine_array_bone_set_size(spine_array_bone array, size_t newSize, /*@null*/ spine_bone defaultValue) { Array *_array = (Array *) array; return (spine_array_bone) &_array->setSize(newSize, (Bone *) defaultValue); } @@ -627,17 +630,17 @@ void spine_array_bone_ensure_capacity(spine_array_bone array, size_t newCapacity _array->ensureCapacity(newCapacity); } -void spine_array_bone_add(spine_array_bone array, spine_bone inValue) { +void spine_array_bone_add(spine_array_bone array, /*@null*/ spine_bone inValue) { Array *_array = (Array *) array; _array->add((Bone *) inValue); } -void spine_array_bone_add_all(spine_array_bone array, spine_array_bone inValue) { +void spine_array_bone_add_all(spine_array_bone array, /*@null*/ spine_array_bone inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_bone_clear_and_add_all(spine_array_bone array, spine_array_bone inValue) { +void spine_array_bone_clear_and_add_all(spine_array_bone array, /*@null*/ spine_array_bone inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -647,17 +650,17 @@ void spine_array_bone_remove_at(spine_array_bone array, size_t inIndex) { _array->removeAt(inIndex); } -bool spine_array_bone_contains(spine_array_bone array, spine_bone inValue) { +bool spine_array_bone_contains(spine_array_bone array, /*@null*/ spine_bone inValue) { Array *_array = (Array *) array; return _array->contains((Bone *) inValue); } -int spine_array_bone_index_of(spine_array_bone array, spine_bone inValue) { +int spine_array_bone_index_of(spine_array_bone array, /*@null*/ spine_bone inValue) { Array *_array = (Array *) array; return _array->indexOf((Bone *) inValue); } -spine_bone *spine_array_bone_buffer(spine_array_bone array) { +/*@null*/ spine_bone *spine_array_bone_buffer(spine_array_bone array) { Array *_array = (Array *) array; return (spine_bone *) _array->buffer(); } @@ -687,7 +690,7 @@ size_t spine_array_bone_data_size(spine_array_bone_data array) { return _array->size(); } -spine_array_bone_data spine_array_bone_data_set_size(spine_array_bone_data array, size_t newSize, spine_bone_data defaultValue) { +/*@null*/ spine_array_bone_data spine_array_bone_data_set_size(spine_array_bone_data array, size_t newSize, /*@null*/ spine_bone_data defaultValue) { Array *_array = (Array *) array; return (spine_array_bone_data) &_array->setSize(newSize, (BoneData *) defaultValue); } @@ -697,17 +700,17 @@ void spine_array_bone_data_ensure_capacity(spine_array_bone_data array, size_t n _array->ensureCapacity(newCapacity); } -void spine_array_bone_data_add(spine_array_bone_data array, spine_bone_data inValue) { +void spine_array_bone_data_add(spine_array_bone_data array, /*@null*/ spine_bone_data inValue) { Array *_array = (Array *) array; _array->add((BoneData *) inValue); } -void spine_array_bone_data_add_all(spine_array_bone_data array, spine_array_bone_data inValue) { +void spine_array_bone_data_add_all(spine_array_bone_data array, /*@null*/ spine_array_bone_data inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_bone_data_clear_and_add_all(spine_array_bone_data array, spine_array_bone_data inValue) { +void spine_array_bone_data_clear_and_add_all(spine_array_bone_data array, /*@null*/ spine_array_bone_data inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -717,17 +720,17 @@ void spine_array_bone_data_remove_at(spine_array_bone_data array, size_t inIndex _array->removeAt(inIndex); } -bool spine_array_bone_data_contains(spine_array_bone_data array, spine_bone_data inValue) { +bool spine_array_bone_data_contains(spine_array_bone_data array, /*@null*/ spine_bone_data inValue) { Array *_array = (Array *) array; return _array->contains((BoneData *) inValue); } -int spine_array_bone_data_index_of(spine_array_bone_data array, spine_bone_data inValue) { +int spine_array_bone_data_index_of(spine_array_bone_data array, /*@null*/ spine_bone_data inValue) { Array *_array = (Array *) array; return _array->indexOf((BoneData *) inValue); } -spine_bone_data *spine_array_bone_data_buffer(spine_array_bone_data array) { +/*@null*/ spine_bone_data *spine_array_bone_data_buffer(spine_array_bone_data array) { Array *_array = (Array *) array; return (spine_bone_data *) _array->buffer(); } @@ -757,7 +760,7 @@ size_t spine_array_bone_pose_size(spine_array_bone_pose array) { return _array->size(); } -spine_array_bone_pose spine_array_bone_pose_set_size(spine_array_bone_pose array, size_t newSize, spine_bone_pose defaultValue) { +/*@null*/ spine_array_bone_pose spine_array_bone_pose_set_size(spine_array_bone_pose array, size_t newSize, /*@null*/ spine_bone_pose defaultValue) { Array *_array = (Array *) array; return (spine_array_bone_pose) &_array->setSize(newSize, (BonePose *) defaultValue); } @@ -767,17 +770,17 @@ void spine_array_bone_pose_ensure_capacity(spine_array_bone_pose array, size_t n _array->ensureCapacity(newCapacity); } -void spine_array_bone_pose_add(spine_array_bone_pose array, spine_bone_pose inValue) { +void spine_array_bone_pose_add(spine_array_bone_pose array, /*@null*/ spine_bone_pose inValue) { Array *_array = (Array *) array; _array->add((BonePose *) inValue); } -void spine_array_bone_pose_add_all(spine_array_bone_pose array, spine_array_bone_pose inValue) { +void spine_array_bone_pose_add_all(spine_array_bone_pose array, /*@null*/ spine_array_bone_pose inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_bone_pose_clear_and_add_all(spine_array_bone_pose array, spine_array_bone_pose inValue) { +void spine_array_bone_pose_clear_and_add_all(spine_array_bone_pose array, /*@null*/ spine_array_bone_pose inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -787,17 +790,17 @@ void spine_array_bone_pose_remove_at(spine_array_bone_pose array, size_t inIndex _array->removeAt(inIndex); } -bool spine_array_bone_pose_contains(spine_array_bone_pose array, spine_bone_pose inValue) { +bool spine_array_bone_pose_contains(spine_array_bone_pose array, /*@null*/ spine_bone_pose inValue) { Array *_array = (Array *) array; return _array->contains((BonePose *) inValue); } -int spine_array_bone_pose_index_of(spine_array_bone_pose array, spine_bone_pose inValue) { +int spine_array_bone_pose_index_of(spine_array_bone_pose array, /*@null*/ spine_bone_pose inValue) { Array *_array = (Array *) array; return _array->indexOf((BonePose *) inValue); } -spine_bone_pose *spine_array_bone_pose_buffer(spine_array_bone_pose array) { +/*@null*/ spine_bone_pose *spine_array_bone_pose_buffer(spine_array_bone_pose array) { Array *_array = (Array *) array; return (spine_bone_pose *) _array->buffer(); } @@ -827,8 +830,8 @@ size_t spine_array_bounding_box_attachment_size(spine_array_bounding_box_attachm return _array->size(); } -spine_array_bounding_box_attachment spine_array_bounding_box_attachment_set_size(spine_array_bounding_box_attachment array, size_t newSize, - spine_bounding_box_attachment defaultValue) { +/*@null*/ spine_array_bounding_box_attachment spine_array_bounding_box_attachment_set_size(spine_array_bounding_box_attachment array, size_t newSize, + /*@null*/ spine_bounding_box_attachment defaultValue) { Array *_array = (Array *) array; return (spine_array_bounding_box_attachment) &_array->setSize(newSize, (BoundingBoxAttachment *) defaultValue); } @@ -838,17 +841,18 @@ void spine_array_bounding_box_attachment_ensure_capacity(spine_array_bounding_bo _array->ensureCapacity(newCapacity); } -void spine_array_bounding_box_attachment_add(spine_array_bounding_box_attachment array, spine_bounding_box_attachment inValue) { +void spine_array_bounding_box_attachment_add(spine_array_bounding_box_attachment array, /*@null*/ spine_bounding_box_attachment inValue) { Array *_array = (Array *) array; _array->add((BoundingBoxAttachment *) inValue); } -void spine_array_bounding_box_attachment_add_all(spine_array_bounding_box_attachment array, spine_array_bounding_box_attachment inValue) { +void spine_array_bounding_box_attachment_add_all(spine_array_bounding_box_attachment array, /*@null*/ spine_array_bounding_box_attachment inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_bounding_box_attachment_clear_and_add_all(spine_array_bounding_box_attachment array, spine_array_bounding_box_attachment inValue) { +void spine_array_bounding_box_attachment_clear_and_add_all(spine_array_bounding_box_attachment array, + /*@null*/ spine_array_bounding_box_attachment inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -858,17 +862,17 @@ void spine_array_bounding_box_attachment_remove_at(spine_array_bounding_box_atta _array->removeAt(inIndex); } -bool spine_array_bounding_box_attachment_contains(spine_array_bounding_box_attachment array, spine_bounding_box_attachment inValue) { +bool spine_array_bounding_box_attachment_contains(spine_array_bounding_box_attachment array, /*@null*/ spine_bounding_box_attachment inValue) { Array *_array = (Array *) array; return _array->contains((BoundingBoxAttachment *) inValue); } -int spine_array_bounding_box_attachment_index_of(spine_array_bounding_box_attachment array, spine_bounding_box_attachment inValue) { +int spine_array_bounding_box_attachment_index_of(spine_array_bounding_box_attachment array, /*@null*/ spine_bounding_box_attachment inValue) { Array *_array = (Array *) array; return _array->indexOf((BoundingBoxAttachment *) inValue); } -spine_bounding_box_attachment *spine_array_bounding_box_attachment_buffer(spine_array_bounding_box_attachment array) { +/*@null*/ spine_bounding_box_attachment *spine_array_bounding_box_attachment_buffer(spine_array_bounding_box_attachment array) { Array *_array = (Array *) array; return (spine_bounding_box_attachment *) _array->buffer(); } @@ -898,7 +902,8 @@ size_t spine_array_constraint_size(spine_array_constraint array) { return _array->size(); } -spine_array_constraint spine_array_constraint_set_size(spine_array_constraint array, size_t newSize, spine_constraint defaultValue) { +/*@null*/ spine_array_constraint spine_array_constraint_set_size(spine_array_constraint array, size_t newSize, + /*@null*/ spine_constraint defaultValue) { Array *_array = (Array *) array; return (spine_array_constraint) &_array->setSize(newSize, (Constraint *) defaultValue); } @@ -908,17 +913,17 @@ void spine_array_constraint_ensure_capacity(spine_array_constraint array, size_t _array->ensureCapacity(newCapacity); } -void spine_array_constraint_add(spine_array_constraint array, spine_constraint inValue) { +void spine_array_constraint_add(spine_array_constraint array, /*@null*/ spine_constraint inValue) { Array *_array = (Array *) array; _array->add((Constraint *) inValue); } -void spine_array_constraint_add_all(spine_array_constraint array, spine_array_constraint inValue) { +void spine_array_constraint_add_all(spine_array_constraint array, /*@null*/ spine_array_constraint inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_constraint_clear_and_add_all(spine_array_constraint array, spine_array_constraint inValue) { +void spine_array_constraint_clear_and_add_all(spine_array_constraint array, /*@null*/ spine_array_constraint inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -928,17 +933,17 @@ void spine_array_constraint_remove_at(spine_array_constraint array, size_t inInd _array->removeAt(inIndex); } -bool spine_array_constraint_contains(spine_array_constraint array, spine_constraint inValue) { +bool spine_array_constraint_contains(spine_array_constraint array, /*@null*/ spine_constraint inValue) { Array *_array = (Array *) array; return _array->contains((Constraint *) inValue); } -int spine_array_constraint_index_of(spine_array_constraint array, spine_constraint inValue) { +int spine_array_constraint_index_of(spine_array_constraint array, /*@null*/ spine_constraint inValue) { Array *_array = (Array *) array; return _array->indexOf((Constraint *) inValue); } -spine_constraint *spine_array_constraint_buffer(spine_array_constraint array) { +/*@null*/ spine_constraint *spine_array_constraint_buffer(spine_array_constraint array) { Array *_array = (Array *) array; return (spine_constraint *) _array->buffer(); } @@ -968,8 +973,8 @@ size_t spine_array_constraint_data_size(spine_array_constraint_data array) { return _array->size(); } -spine_array_constraint_data spine_array_constraint_data_set_size(spine_array_constraint_data array, size_t newSize, - spine_constraint_data defaultValue) { +/*@null*/ spine_array_constraint_data spine_array_constraint_data_set_size(spine_array_constraint_data array, size_t newSize, + /*@null*/ spine_constraint_data defaultValue) { Array *_array = (Array *) array; return (spine_array_constraint_data) &_array->setSize(newSize, (ConstraintData *) defaultValue); } @@ -979,17 +984,17 @@ void spine_array_constraint_data_ensure_capacity(spine_array_constraint_data arr _array->ensureCapacity(newCapacity); } -void spine_array_constraint_data_add(spine_array_constraint_data array, spine_constraint_data inValue) { +void spine_array_constraint_data_add(spine_array_constraint_data array, /*@null*/ spine_constraint_data inValue) { Array *_array = (Array *) array; _array->add((ConstraintData *) inValue); } -void spine_array_constraint_data_add_all(spine_array_constraint_data array, spine_array_constraint_data inValue) { +void spine_array_constraint_data_add_all(spine_array_constraint_data array, /*@null*/ spine_array_constraint_data inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_constraint_data_clear_and_add_all(spine_array_constraint_data array, spine_array_constraint_data inValue) { +void spine_array_constraint_data_clear_and_add_all(spine_array_constraint_data array, /*@null*/ spine_array_constraint_data inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -999,17 +1004,17 @@ void spine_array_constraint_data_remove_at(spine_array_constraint_data array, si _array->removeAt(inIndex); } -bool spine_array_constraint_data_contains(spine_array_constraint_data array, spine_constraint_data inValue) { +bool spine_array_constraint_data_contains(spine_array_constraint_data array, /*@null*/ spine_constraint_data inValue) { Array *_array = (Array *) array; return _array->contains((ConstraintData *) inValue); } -int spine_array_constraint_data_index_of(spine_array_constraint_data array, spine_constraint_data inValue) { +int spine_array_constraint_data_index_of(spine_array_constraint_data array, /*@null*/ spine_constraint_data inValue) { Array *_array = (Array *) array; return _array->indexOf((ConstraintData *) inValue); } -spine_constraint_data *spine_array_constraint_data_buffer(spine_array_constraint_data array) { +/*@null*/ spine_constraint_data *spine_array_constraint_data_buffer(spine_array_constraint_data array) { Array *_array = (Array *) array; return (spine_constraint_data *) _array->buffer(); } @@ -1039,7 +1044,7 @@ size_t spine_array_event_size(spine_array_event array) { return _array->size(); } -spine_array_event spine_array_event_set_size(spine_array_event array, size_t newSize, spine_event defaultValue) { +/*@null*/ spine_array_event spine_array_event_set_size(spine_array_event array, size_t newSize, /*@null*/ spine_event defaultValue) { Array *_array = (Array *) array; return (spine_array_event) &_array->setSize(newSize, (Event *) defaultValue); } @@ -1049,17 +1054,17 @@ void spine_array_event_ensure_capacity(spine_array_event array, size_t newCapaci _array->ensureCapacity(newCapacity); } -void spine_array_event_add(spine_array_event array, spine_event inValue) { +void spine_array_event_add(spine_array_event array, /*@null*/ spine_event inValue) { Array *_array = (Array *) array; _array->add((Event *) inValue); } -void spine_array_event_add_all(spine_array_event array, spine_array_event inValue) { +void spine_array_event_add_all(spine_array_event array, /*@null*/ spine_array_event inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_event_clear_and_add_all(spine_array_event array, spine_array_event inValue) { +void spine_array_event_clear_and_add_all(spine_array_event array, /*@null*/ spine_array_event inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1069,17 +1074,17 @@ void spine_array_event_remove_at(spine_array_event array, size_t inIndex) { _array->removeAt(inIndex); } -bool spine_array_event_contains(spine_array_event array, spine_event inValue) { +bool spine_array_event_contains(spine_array_event array, /*@null*/ spine_event inValue) { Array *_array = (Array *) array; return _array->contains((Event *) inValue); } -int spine_array_event_index_of(spine_array_event array, spine_event inValue) { +int spine_array_event_index_of(spine_array_event array, /*@null*/ spine_event inValue) { Array *_array = (Array *) array; return _array->indexOf((Event *) inValue); } -spine_event *spine_array_event_buffer(spine_array_event array) { +/*@null*/ spine_event *spine_array_event_buffer(spine_array_event array) { Array *_array = (Array *) array; return (spine_event *) _array->buffer(); } @@ -1109,7 +1114,8 @@ size_t spine_array_event_data_size(spine_array_event_data array) { return _array->size(); } -spine_array_event_data spine_array_event_data_set_size(spine_array_event_data array, size_t newSize, spine_event_data defaultValue) { +/*@null*/ spine_array_event_data spine_array_event_data_set_size(spine_array_event_data array, size_t newSize, + /*@null*/ spine_event_data defaultValue) { Array *_array = (Array *) array; return (spine_array_event_data) &_array->setSize(newSize, (EventData *) defaultValue); } @@ -1119,17 +1125,17 @@ void spine_array_event_data_ensure_capacity(spine_array_event_data array, size_t _array->ensureCapacity(newCapacity); } -void spine_array_event_data_add(spine_array_event_data array, spine_event_data inValue) { +void spine_array_event_data_add(spine_array_event_data array, /*@null*/ spine_event_data inValue) { Array *_array = (Array *) array; _array->add((EventData *) inValue); } -void spine_array_event_data_add_all(spine_array_event_data array, spine_array_event_data inValue) { +void spine_array_event_data_add_all(spine_array_event_data array, /*@null*/ spine_array_event_data inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_event_data_clear_and_add_all(spine_array_event_data array, spine_array_event_data inValue) { +void spine_array_event_data_clear_and_add_all(spine_array_event_data array, /*@null*/ spine_array_event_data inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1139,17 +1145,17 @@ void spine_array_event_data_remove_at(spine_array_event_data array, size_t inInd _array->removeAt(inIndex); } -bool spine_array_event_data_contains(spine_array_event_data array, spine_event_data inValue) { +bool spine_array_event_data_contains(spine_array_event_data array, /*@null*/ spine_event_data inValue) { Array *_array = (Array *) array; return _array->contains((EventData *) inValue); } -int spine_array_event_data_index_of(spine_array_event_data array, spine_event_data inValue) { +int spine_array_event_data_index_of(spine_array_event_data array, /*@null*/ spine_event_data inValue) { Array *_array = (Array *) array; return _array->indexOf((EventData *) inValue); } -spine_event_data *spine_array_event_data_buffer(spine_array_event_data array) { +/*@null*/ spine_event_data *spine_array_event_data_buffer(spine_array_event_data array) { Array *_array = (Array *) array; return (spine_event_data *) _array->buffer(); } @@ -1179,7 +1185,8 @@ size_t spine_array_from_property_size(spine_array_from_property array) { return _array->size(); } -spine_array_from_property spine_array_from_property_set_size(spine_array_from_property array, size_t newSize, spine_from_property defaultValue) { +/*@null*/ spine_array_from_property spine_array_from_property_set_size(spine_array_from_property array, size_t newSize, + /*@null*/ spine_from_property defaultValue) { Array *_array = (Array *) array; return (spine_array_from_property) &_array->setSize(newSize, (FromProperty *) defaultValue); } @@ -1189,17 +1196,17 @@ void spine_array_from_property_ensure_capacity(spine_array_from_property array, _array->ensureCapacity(newCapacity); } -void spine_array_from_property_add(spine_array_from_property array, spine_from_property inValue) { +void spine_array_from_property_add(spine_array_from_property array, /*@null*/ spine_from_property inValue) { Array *_array = (Array *) array; _array->add((FromProperty *) inValue); } -void spine_array_from_property_add_all(spine_array_from_property array, spine_array_from_property inValue) { +void spine_array_from_property_add_all(spine_array_from_property array, /*@null*/ spine_array_from_property inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_from_property_clear_and_add_all(spine_array_from_property array, spine_array_from_property inValue) { +void spine_array_from_property_clear_and_add_all(spine_array_from_property array, /*@null*/ spine_array_from_property inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1209,17 +1216,17 @@ void spine_array_from_property_remove_at(spine_array_from_property array, size_t _array->removeAt(inIndex); } -bool spine_array_from_property_contains(spine_array_from_property array, spine_from_property inValue) { +bool spine_array_from_property_contains(spine_array_from_property array, /*@null*/ spine_from_property inValue) { Array *_array = (Array *) array; return _array->contains((FromProperty *) inValue); } -int spine_array_from_property_index_of(spine_array_from_property array, spine_from_property inValue) { +int spine_array_from_property_index_of(spine_array_from_property array, /*@null*/ spine_from_property inValue) { Array *_array = (Array *) array; return _array->indexOf((FromProperty *) inValue); } -spine_from_property *spine_array_from_property_buffer(spine_array_from_property array) { +/*@null*/ spine_from_property *spine_array_from_property_buffer(spine_array_from_property array) { Array *_array = (Array *) array; return (spine_from_property *) _array->buffer(); } @@ -1249,8 +1256,8 @@ size_t spine_array_physics_constraint_size(spine_array_physics_constraint array) return _array->size(); } -spine_array_physics_constraint spine_array_physics_constraint_set_size(spine_array_physics_constraint array, size_t newSize, - spine_physics_constraint defaultValue) { +/*@null*/ spine_array_physics_constraint spine_array_physics_constraint_set_size(spine_array_physics_constraint array, size_t newSize, + /*@null*/ spine_physics_constraint defaultValue) { Array *_array = (Array *) array; return (spine_array_physics_constraint) &_array->setSize(newSize, (PhysicsConstraint *) defaultValue); } @@ -1260,17 +1267,17 @@ void spine_array_physics_constraint_ensure_capacity(spine_array_physics_constrai _array->ensureCapacity(newCapacity); } -void spine_array_physics_constraint_add(spine_array_physics_constraint array, spine_physics_constraint inValue) { +void spine_array_physics_constraint_add(spine_array_physics_constraint array, /*@null*/ spine_physics_constraint inValue) { Array *_array = (Array *) array; _array->add((PhysicsConstraint *) inValue); } -void spine_array_physics_constraint_add_all(spine_array_physics_constraint array, spine_array_physics_constraint inValue) { +void spine_array_physics_constraint_add_all(spine_array_physics_constraint array, /*@null*/ spine_array_physics_constraint inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_physics_constraint_clear_and_add_all(spine_array_physics_constraint array, spine_array_physics_constraint inValue) { +void spine_array_physics_constraint_clear_and_add_all(spine_array_physics_constraint array, /*@null*/ spine_array_physics_constraint inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1280,17 +1287,17 @@ void spine_array_physics_constraint_remove_at(spine_array_physics_constraint arr _array->removeAt(inIndex); } -bool spine_array_physics_constraint_contains(spine_array_physics_constraint array, spine_physics_constraint inValue) { +bool spine_array_physics_constraint_contains(spine_array_physics_constraint array, /*@null*/ spine_physics_constraint inValue) { Array *_array = (Array *) array; return _array->contains((PhysicsConstraint *) inValue); } -int spine_array_physics_constraint_index_of(spine_array_physics_constraint array, spine_physics_constraint inValue) { +int spine_array_physics_constraint_index_of(spine_array_physics_constraint array, /*@null*/ spine_physics_constraint inValue) { Array *_array = (Array *) array; return _array->indexOf((PhysicsConstraint *) inValue); } -spine_physics_constraint *spine_array_physics_constraint_buffer(spine_array_physics_constraint array) { +/*@null*/ spine_physics_constraint *spine_array_physics_constraint_buffer(spine_array_physics_constraint array) { Array *_array = (Array *) array; return (spine_physics_constraint *) _array->buffer(); } @@ -1320,7 +1327,7 @@ size_t spine_array_polygon_size(spine_array_polygon array) { return _array->size(); } -spine_array_polygon spine_array_polygon_set_size(spine_array_polygon array, size_t newSize, spine_polygon defaultValue) { +/*@null*/ spine_array_polygon spine_array_polygon_set_size(spine_array_polygon array, size_t newSize, /*@null*/ spine_polygon defaultValue) { Array *_array = (Array *) array; return (spine_array_polygon) &_array->setSize(newSize, (Polygon *) defaultValue); } @@ -1330,17 +1337,17 @@ void spine_array_polygon_ensure_capacity(spine_array_polygon array, size_t newCa _array->ensureCapacity(newCapacity); } -void spine_array_polygon_add(spine_array_polygon array, spine_polygon inValue) { +void spine_array_polygon_add(spine_array_polygon array, /*@null*/ spine_polygon inValue) { Array *_array = (Array *) array; _array->add((Polygon *) inValue); } -void spine_array_polygon_add_all(spine_array_polygon array, spine_array_polygon inValue) { +void spine_array_polygon_add_all(spine_array_polygon array, /*@null*/ spine_array_polygon inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_polygon_clear_and_add_all(spine_array_polygon array, spine_array_polygon inValue) { +void spine_array_polygon_clear_and_add_all(spine_array_polygon array, /*@null*/ spine_array_polygon inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1350,17 +1357,17 @@ void spine_array_polygon_remove_at(spine_array_polygon array, size_t inIndex) { _array->removeAt(inIndex); } -bool spine_array_polygon_contains(spine_array_polygon array, spine_polygon inValue) { +bool spine_array_polygon_contains(spine_array_polygon array, /*@null*/ spine_polygon inValue) { Array *_array = (Array *) array; return _array->contains((Polygon *) inValue); } -int spine_array_polygon_index_of(spine_array_polygon array, spine_polygon inValue) { +int spine_array_polygon_index_of(spine_array_polygon array, /*@null*/ spine_polygon inValue) { Array *_array = (Array *) array; return _array->indexOf((Polygon *) inValue); } -spine_polygon *spine_array_polygon_buffer(spine_array_polygon array) { +/*@null*/ spine_polygon *spine_array_polygon_buffer(spine_array_polygon array) { Array *_array = (Array *) array; return (spine_polygon *) _array->buffer(); } @@ -1390,7 +1397,7 @@ size_t spine_array_skin_size(spine_array_skin array) { return _array->size(); } -spine_array_skin spine_array_skin_set_size(spine_array_skin array, size_t newSize, spine_skin defaultValue) { +/*@null*/ spine_array_skin spine_array_skin_set_size(spine_array_skin array, size_t newSize, /*@null*/ spine_skin defaultValue) { Array *_array = (Array *) array; return (spine_array_skin) &_array->setSize(newSize, (Skin *) defaultValue); } @@ -1400,17 +1407,17 @@ void spine_array_skin_ensure_capacity(spine_array_skin array, size_t newCapacity _array->ensureCapacity(newCapacity); } -void spine_array_skin_add(spine_array_skin array, spine_skin inValue) { +void spine_array_skin_add(spine_array_skin array, /*@null*/ spine_skin inValue) { Array *_array = (Array *) array; _array->add((Skin *) inValue); } -void spine_array_skin_add_all(spine_array_skin array, spine_array_skin inValue) { +void spine_array_skin_add_all(spine_array_skin array, /*@null*/ spine_array_skin inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_skin_clear_and_add_all(spine_array_skin array, spine_array_skin inValue) { +void spine_array_skin_clear_and_add_all(spine_array_skin array, /*@null*/ spine_array_skin inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1420,17 +1427,17 @@ void spine_array_skin_remove_at(spine_array_skin array, size_t inIndex) { _array->removeAt(inIndex); } -bool spine_array_skin_contains(spine_array_skin array, spine_skin inValue) { +bool spine_array_skin_contains(spine_array_skin array, /*@null*/ spine_skin inValue) { Array *_array = (Array *) array; return _array->contains((Skin *) inValue); } -int spine_array_skin_index_of(spine_array_skin array, spine_skin inValue) { +int spine_array_skin_index_of(spine_array_skin array, /*@null*/ spine_skin inValue) { Array *_array = (Array *) array; return _array->indexOf((Skin *) inValue); } -spine_skin *spine_array_skin_buffer(spine_array_skin array) { +/*@null*/ spine_skin *spine_array_skin_buffer(spine_array_skin array) { Array *_array = (Array *) array; return (spine_skin *) _array->buffer(); } @@ -1460,7 +1467,7 @@ size_t spine_array_slot_size(spine_array_slot array) { return _array->size(); } -spine_array_slot spine_array_slot_set_size(spine_array_slot array, size_t newSize, spine_slot defaultValue) { +/*@null*/ spine_array_slot spine_array_slot_set_size(spine_array_slot array, size_t newSize, /*@null*/ spine_slot defaultValue) { Array *_array = (Array *) array; return (spine_array_slot) &_array->setSize(newSize, (Slot *) defaultValue); } @@ -1470,17 +1477,17 @@ void spine_array_slot_ensure_capacity(spine_array_slot array, size_t newCapacity _array->ensureCapacity(newCapacity); } -void spine_array_slot_add(spine_array_slot array, spine_slot inValue) { +void spine_array_slot_add(spine_array_slot array, /*@null*/ spine_slot inValue) { Array *_array = (Array *) array; _array->add((Slot *) inValue); } -void spine_array_slot_add_all(spine_array_slot array, spine_array_slot inValue) { +void spine_array_slot_add_all(spine_array_slot array, /*@null*/ spine_array_slot inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_slot_clear_and_add_all(spine_array_slot array, spine_array_slot inValue) { +void spine_array_slot_clear_and_add_all(spine_array_slot array, /*@null*/ spine_array_slot inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1490,17 +1497,17 @@ void spine_array_slot_remove_at(spine_array_slot array, size_t inIndex) { _array->removeAt(inIndex); } -bool spine_array_slot_contains(spine_array_slot array, spine_slot inValue) { +bool spine_array_slot_contains(spine_array_slot array, /*@null*/ spine_slot inValue) { Array *_array = (Array *) array; return _array->contains((Slot *) inValue); } -int spine_array_slot_index_of(spine_array_slot array, spine_slot inValue) { +int spine_array_slot_index_of(spine_array_slot array, /*@null*/ spine_slot inValue) { Array *_array = (Array *) array; return _array->indexOf((Slot *) inValue); } -spine_slot *spine_array_slot_buffer(spine_array_slot array) { +/*@null*/ spine_slot *spine_array_slot_buffer(spine_array_slot array) { Array *_array = (Array *) array; return (spine_slot *) _array->buffer(); } @@ -1530,7 +1537,7 @@ size_t spine_array_slot_data_size(spine_array_slot_data array) { return _array->size(); } -spine_array_slot_data spine_array_slot_data_set_size(spine_array_slot_data array, size_t newSize, spine_slot_data defaultValue) { +/*@null*/ spine_array_slot_data spine_array_slot_data_set_size(spine_array_slot_data array, size_t newSize, /*@null*/ spine_slot_data defaultValue) { Array *_array = (Array *) array; return (spine_array_slot_data) &_array->setSize(newSize, (SlotData *) defaultValue); } @@ -1540,17 +1547,17 @@ void spine_array_slot_data_ensure_capacity(spine_array_slot_data array, size_t n _array->ensureCapacity(newCapacity); } -void spine_array_slot_data_add(spine_array_slot_data array, spine_slot_data inValue) { +void spine_array_slot_data_add(spine_array_slot_data array, /*@null*/ spine_slot_data inValue) { Array *_array = (Array *) array; _array->add((SlotData *) inValue); } -void spine_array_slot_data_add_all(spine_array_slot_data array, spine_array_slot_data inValue) { +void spine_array_slot_data_add_all(spine_array_slot_data array, /*@null*/ spine_array_slot_data inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_slot_data_clear_and_add_all(spine_array_slot_data array, spine_array_slot_data inValue) { +void spine_array_slot_data_clear_and_add_all(spine_array_slot_data array, /*@null*/ spine_array_slot_data inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1560,17 +1567,17 @@ void spine_array_slot_data_remove_at(spine_array_slot_data array, size_t inIndex _array->removeAt(inIndex); } -bool spine_array_slot_data_contains(spine_array_slot_data array, spine_slot_data inValue) { +bool spine_array_slot_data_contains(spine_array_slot_data array, /*@null*/ spine_slot_data inValue) { Array *_array = (Array *) array; return _array->contains((SlotData *) inValue); } -int spine_array_slot_data_index_of(spine_array_slot_data array, spine_slot_data inValue) { +int spine_array_slot_data_index_of(spine_array_slot_data array, /*@null*/ spine_slot_data inValue) { Array *_array = (Array *) array; return _array->indexOf((SlotData *) inValue); } -spine_slot_data *spine_array_slot_data_buffer(spine_array_slot_data array) { +/*@null*/ spine_slot_data *spine_array_slot_data_buffer(spine_array_slot_data array) { Array *_array = (Array *) array; return (spine_slot_data *) _array->buffer(); } @@ -1600,7 +1607,8 @@ size_t spine_array_texture_region_size(spine_array_texture_region array) { return _array->size(); } -spine_array_texture_region spine_array_texture_region_set_size(spine_array_texture_region array, size_t newSize, spine_texture_region defaultValue) { +/*@null*/ spine_array_texture_region spine_array_texture_region_set_size(spine_array_texture_region array, size_t newSize, + /*@null*/ spine_texture_region defaultValue) { Array *_array = (Array *) array; return (spine_array_texture_region) &_array->setSize(newSize, (TextureRegion *) defaultValue); } @@ -1610,17 +1618,17 @@ void spine_array_texture_region_ensure_capacity(spine_array_texture_region array _array->ensureCapacity(newCapacity); } -void spine_array_texture_region_add(spine_array_texture_region array, spine_texture_region inValue) { +void spine_array_texture_region_add(spine_array_texture_region array, /*@null*/ spine_texture_region inValue) { Array *_array = (Array *) array; _array->add((TextureRegion *) inValue); } -void spine_array_texture_region_add_all(spine_array_texture_region array, spine_array_texture_region inValue) { +void spine_array_texture_region_add_all(spine_array_texture_region array, /*@null*/ spine_array_texture_region inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_texture_region_clear_and_add_all(spine_array_texture_region array, spine_array_texture_region inValue) { +void spine_array_texture_region_clear_and_add_all(spine_array_texture_region array, /*@null*/ spine_array_texture_region inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1630,17 +1638,17 @@ void spine_array_texture_region_remove_at(spine_array_texture_region array, size _array->removeAt(inIndex); } -bool spine_array_texture_region_contains(spine_array_texture_region array, spine_texture_region inValue) { +bool spine_array_texture_region_contains(spine_array_texture_region array, /*@null*/ spine_texture_region inValue) { Array *_array = (Array *) array; return _array->contains((TextureRegion *) inValue); } -int spine_array_texture_region_index_of(spine_array_texture_region array, spine_texture_region inValue) { +int spine_array_texture_region_index_of(spine_array_texture_region array, /*@null*/ spine_texture_region inValue) { Array *_array = (Array *) array; return _array->indexOf((TextureRegion *) inValue); } -spine_texture_region *spine_array_texture_region_buffer(spine_array_texture_region array) { +/*@null*/ spine_texture_region *spine_array_texture_region_buffer(spine_array_texture_region array) { Array *_array = (Array *) array; return (spine_texture_region *) _array->buffer(); } @@ -1670,7 +1678,7 @@ size_t spine_array_timeline_size(spine_array_timeline array) { return _array->size(); } -spine_array_timeline spine_array_timeline_set_size(spine_array_timeline array, size_t newSize, spine_timeline defaultValue) { +/*@null*/ spine_array_timeline spine_array_timeline_set_size(spine_array_timeline array, size_t newSize, /*@null*/ spine_timeline defaultValue) { Array *_array = (Array *) array; return (spine_array_timeline) &_array->setSize(newSize, (Timeline *) defaultValue); } @@ -1680,17 +1688,17 @@ void spine_array_timeline_ensure_capacity(spine_array_timeline array, size_t new _array->ensureCapacity(newCapacity); } -void spine_array_timeline_add(spine_array_timeline array, spine_timeline inValue) { +void spine_array_timeline_add(spine_array_timeline array, /*@null*/ spine_timeline inValue) { Array *_array = (Array *) array; _array->add((Timeline *) inValue); } -void spine_array_timeline_add_all(spine_array_timeline array, spine_array_timeline inValue) { +void spine_array_timeline_add_all(spine_array_timeline array, /*@null*/ spine_array_timeline inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_timeline_clear_and_add_all(spine_array_timeline array, spine_array_timeline inValue) { +void spine_array_timeline_clear_and_add_all(spine_array_timeline array, /*@null*/ spine_array_timeline inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1700,17 +1708,17 @@ void spine_array_timeline_remove_at(spine_array_timeline array, size_t inIndex) _array->removeAt(inIndex); } -bool spine_array_timeline_contains(spine_array_timeline array, spine_timeline inValue) { +bool spine_array_timeline_contains(spine_array_timeline array, /*@null*/ spine_timeline inValue) { Array *_array = (Array *) array; return _array->contains((Timeline *) inValue); } -int spine_array_timeline_index_of(spine_array_timeline array, spine_timeline inValue) { +int spine_array_timeline_index_of(spine_array_timeline array, /*@null*/ spine_timeline inValue) { Array *_array = (Array *) array; return _array->indexOf((Timeline *) inValue); } -spine_timeline *spine_array_timeline_buffer(spine_array_timeline array) { +/*@null*/ spine_timeline *spine_array_timeline_buffer(spine_array_timeline array) { Array *_array = (Array *) array; return (spine_timeline *) _array->buffer(); } @@ -1740,7 +1748,8 @@ size_t spine_array_to_property_size(spine_array_to_property array) { return _array->size(); } -spine_array_to_property spine_array_to_property_set_size(spine_array_to_property array, size_t newSize, spine_to_property defaultValue) { +/*@null*/ spine_array_to_property spine_array_to_property_set_size(spine_array_to_property array, size_t newSize, + /*@null*/ spine_to_property defaultValue) { Array *_array = (Array *) array; return (spine_array_to_property) &_array->setSize(newSize, (ToProperty *) defaultValue); } @@ -1750,17 +1759,17 @@ void spine_array_to_property_ensure_capacity(spine_array_to_property array, size _array->ensureCapacity(newCapacity); } -void spine_array_to_property_add(spine_array_to_property array, spine_to_property inValue) { +void spine_array_to_property_add(spine_array_to_property array, /*@null*/ spine_to_property inValue) { Array *_array = (Array *) array; _array->add((ToProperty *) inValue); } -void spine_array_to_property_add_all(spine_array_to_property array, spine_array_to_property inValue) { +void spine_array_to_property_add_all(spine_array_to_property array, /*@null*/ spine_array_to_property inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_to_property_clear_and_add_all(spine_array_to_property array, spine_array_to_property inValue) { +void spine_array_to_property_clear_and_add_all(spine_array_to_property array, /*@null*/ spine_array_to_property inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1770,17 +1779,17 @@ void spine_array_to_property_remove_at(spine_array_to_property array, size_t inI _array->removeAt(inIndex); } -bool spine_array_to_property_contains(spine_array_to_property array, spine_to_property inValue) { +bool spine_array_to_property_contains(spine_array_to_property array, /*@null*/ spine_to_property inValue) { Array *_array = (Array *) array; return _array->contains((ToProperty *) inValue); } -int spine_array_to_property_index_of(spine_array_to_property array, spine_to_property inValue) { +int spine_array_to_property_index_of(spine_array_to_property array, /*@null*/ spine_to_property inValue) { Array *_array = (Array *) array; return _array->indexOf((ToProperty *) inValue); } -spine_to_property *spine_array_to_property_buffer(spine_array_to_property array) { +/*@null*/ spine_to_property *spine_array_to_property_buffer(spine_array_to_property array) { Array *_array = (Array *) array; return (spine_to_property *) _array->buffer(); } @@ -1810,7 +1819,8 @@ size_t spine_array_track_entry_size(spine_array_track_entry array) { return _array->size(); } -spine_array_track_entry spine_array_track_entry_set_size(spine_array_track_entry array, size_t newSize, spine_track_entry defaultValue) { +/*@null*/ spine_array_track_entry spine_array_track_entry_set_size(spine_array_track_entry array, size_t newSize, + /*@null*/ spine_track_entry defaultValue) { Array *_array = (Array *) array; return (spine_array_track_entry) &_array->setSize(newSize, (TrackEntry *) defaultValue); } @@ -1820,17 +1830,17 @@ void spine_array_track_entry_ensure_capacity(spine_array_track_entry array, size _array->ensureCapacity(newCapacity); } -void spine_array_track_entry_add(spine_array_track_entry array, spine_track_entry inValue) { +void spine_array_track_entry_add(spine_array_track_entry array, /*@null*/ spine_track_entry inValue) { Array *_array = (Array *) array; _array->add((TrackEntry *) inValue); } -void spine_array_track_entry_add_all(spine_array_track_entry array, spine_array_track_entry inValue) { +void spine_array_track_entry_add_all(spine_array_track_entry array, /*@null*/ spine_array_track_entry inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_track_entry_clear_and_add_all(spine_array_track_entry array, spine_array_track_entry inValue) { +void spine_array_track_entry_clear_and_add_all(spine_array_track_entry array, /*@null*/ spine_array_track_entry inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1840,17 +1850,17 @@ void spine_array_track_entry_remove_at(spine_array_track_entry array, size_t inI _array->removeAt(inIndex); } -bool spine_array_track_entry_contains(spine_array_track_entry array, spine_track_entry inValue) { +bool spine_array_track_entry_contains(spine_array_track_entry array, /*@null*/ spine_track_entry inValue) { Array *_array = (Array *) array; return _array->contains((TrackEntry *) inValue); } -int spine_array_track_entry_index_of(spine_array_track_entry array, spine_track_entry inValue) { +int spine_array_track_entry_index_of(spine_array_track_entry array, /*@null*/ spine_track_entry inValue) { Array *_array = (Array *) array; return _array->indexOf((TrackEntry *) inValue); } -spine_track_entry *spine_array_track_entry_buffer(spine_array_track_entry array) { +/*@null*/ spine_track_entry *spine_array_track_entry_buffer(spine_array_track_entry array) { Array *_array = (Array *) array; return (spine_track_entry *) _array->buffer(); } @@ -1880,7 +1890,7 @@ size_t spine_array_update_size(spine_array_update array) { return _array->size(); } -spine_array_update spine_array_update_set_size(spine_array_update array, size_t newSize, spine_update defaultValue) { +/*@null*/ spine_array_update spine_array_update_set_size(spine_array_update array, size_t newSize, /*@null*/ spine_update defaultValue) { Array *_array = (Array *) array; return (spine_array_update) &_array->setSize(newSize, (Update *) defaultValue); } @@ -1890,17 +1900,17 @@ void spine_array_update_ensure_capacity(spine_array_update array, size_t newCapa _array->ensureCapacity(newCapacity); } -void spine_array_update_add(spine_array_update array, spine_update inValue) { +void spine_array_update_add(spine_array_update array, /*@null*/ spine_update inValue) { Array *_array = (Array *) array; _array->add((Update *) inValue); } -void spine_array_update_add_all(spine_array_update array, spine_array_update inValue) { +void spine_array_update_add_all(spine_array_update array, /*@null*/ spine_array_update inValue) { Array *_array = (Array *) array; _array->addAll(*((const Array *) inValue)); } -void spine_array_update_clear_and_add_all(spine_array_update array, spine_array_update inValue) { +void spine_array_update_clear_and_add_all(spine_array_update array, /*@null*/ spine_array_update inValue) { Array *_array = (Array *) array; _array->clearAndAddAll(*((const Array *) inValue)); } @@ -1910,17 +1920,17 @@ void spine_array_update_remove_at(spine_array_update array, size_t inIndex) { _array->removeAt(inIndex); } -bool spine_array_update_contains(spine_array_update array, spine_update inValue) { +bool spine_array_update_contains(spine_array_update array, /*@null*/ spine_update inValue) { Array *_array = (Array *) array; return _array->contains((Update *) inValue); } -int spine_array_update_index_of(spine_array_update array, spine_update inValue) { +int spine_array_update_index_of(spine_array_update array, /*@null*/ spine_update inValue) { Array *_array = (Array *) array; return _array->indexOf((Update *) inValue); } -spine_update *spine_array_update_buffer(spine_array_update array) { +/*@null*/ spine_update *spine_array_update_buffer(spine_array_update array) { Array *_array = (Array *) array; return (spine_update *) _array->buffer(); } diff --git a/spine-c/src/generated/arrays.h b/spine-c/src/generated/arrays.h index 11de58aaa..ecdc31a0f 100644 --- a/spine-c/src/generated/arrays.h +++ b/spine-c/src/generated/arrays.h @@ -91,7 +91,7 @@ SPINE_C_API bool spine_array_float_contains(spine_array_float array, float inVal SPINE_C_API int spine_array_float_index_of(spine_array_float array, float inValue); -SPINE_C_API float *spine_array_float_buffer(spine_array_float array); +SPINE_C_API /*@null*/ float *spine_array_float_buffer(spine_array_float array); SPINE_C_API spine_array_int spine_array_int_create(void); @@ -119,7 +119,7 @@ SPINE_C_API bool spine_array_int_contains(spine_array_int array, int inValue); SPINE_C_API int spine_array_int_index_of(spine_array_int array, int inValue); -SPINE_C_API int *spine_array_int_buffer(spine_array_int array); +SPINE_C_API /*@null*/ int *spine_array_int_buffer(spine_array_int array); SPINE_C_API spine_array_unsigned_short spine_array_unsigned_short_create(void); @@ -148,7 +148,7 @@ SPINE_C_API bool spine_array_unsigned_short_contains(spine_array_unsigned_short SPINE_C_API int spine_array_unsigned_short_index_of(spine_array_unsigned_short array, unsigned short inValue); -SPINE_C_API unsigned short *spine_array_unsigned_short_buffer(spine_array_unsigned_short array); +SPINE_C_API /*@null*/ unsigned short *spine_array_unsigned_short_buffer(spine_array_unsigned_short array); SPINE_C_API spine_array_property_id spine_array_property_id_create(void); @@ -176,7 +176,7 @@ SPINE_C_API bool spine_array_property_id_contains(spine_array_property_id array, SPINE_C_API int spine_array_property_id_index_of(spine_array_property_id array, int64_t inValue); -SPINE_C_API int64_t *spine_array_property_id_buffer(spine_array_property_id array); +SPINE_C_API /*@null*/ int64_t *spine_array_property_id_buffer(spine_array_property_id array); SPINE_C_API spine_array_animation spine_array_animation_create(void); @@ -188,23 +188,24 @@ SPINE_C_API size_t spine_array_animation_get_capacity(spine_array_animation arra SPINE_C_API size_t spine_array_animation_size(spine_array_animation array); -SPINE_C_API spine_array_animation spine_array_animation_set_size(spine_array_animation array, size_t newSize, spine_animation defaultValue); +SPINE_C_API /*@null*/ spine_array_animation spine_array_animation_set_size(spine_array_animation array, size_t newSize, + /*@null*/ spine_animation defaultValue); SPINE_C_API void spine_array_animation_ensure_capacity(spine_array_animation array, size_t newCapacity); -SPINE_C_API void spine_array_animation_add(spine_array_animation array, spine_animation inValue); +SPINE_C_API void spine_array_animation_add(spine_array_animation array, /*@null*/ spine_animation inValue); -SPINE_C_API void spine_array_animation_add_all(spine_array_animation array, spine_array_animation inValue); +SPINE_C_API void spine_array_animation_add_all(spine_array_animation array, /*@null*/ spine_array_animation inValue); -SPINE_C_API void spine_array_animation_clear_and_add_all(spine_array_animation array, spine_array_animation inValue); +SPINE_C_API void spine_array_animation_clear_and_add_all(spine_array_animation array, /*@null*/ spine_array_animation inValue); SPINE_C_API void spine_array_animation_remove_at(spine_array_animation array, size_t inIndex); -SPINE_C_API bool spine_array_animation_contains(spine_array_animation array, spine_animation inValue); +SPINE_C_API bool spine_array_animation_contains(spine_array_animation array, /*@null*/ spine_animation inValue); -SPINE_C_API int spine_array_animation_index_of(spine_array_animation array, spine_animation inValue); +SPINE_C_API int spine_array_animation_index_of(spine_array_animation array, /*@null*/ spine_animation inValue); -SPINE_C_API spine_animation *spine_array_animation_buffer(spine_array_animation array); +SPINE_C_API /*@null*/ spine_animation *spine_array_animation_buffer(spine_array_animation array); SPINE_C_API spine_array_atlas_page spine_array_atlas_page_create(void); @@ -216,23 +217,24 @@ SPINE_C_API size_t spine_array_atlas_page_get_capacity(spine_array_atlas_page ar SPINE_C_API size_t spine_array_atlas_page_size(spine_array_atlas_page array); -SPINE_C_API spine_array_atlas_page spine_array_atlas_page_set_size(spine_array_atlas_page array, size_t newSize, spine_atlas_page defaultValue); +SPINE_C_API /*@null*/ spine_array_atlas_page spine_array_atlas_page_set_size(spine_array_atlas_page array, size_t newSize, + /*@null*/ spine_atlas_page defaultValue); SPINE_C_API void spine_array_atlas_page_ensure_capacity(spine_array_atlas_page array, size_t newCapacity); -SPINE_C_API void spine_array_atlas_page_add(spine_array_atlas_page array, spine_atlas_page inValue); +SPINE_C_API void spine_array_atlas_page_add(spine_array_atlas_page array, /*@null*/ spine_atlas_page inValue); -SPINE_C_API void spine_array_atlas_page_add_all(spine_array_atlas_page array, spine_array_atlas_page inValue); +SPINE_C_API void spine_array_atlas_page_add_all(spine_array_atlas_page array, /*@null*/ spine_array_atlas_page inValue); -SPINE_C_API void spine_array_atlas_page_clear_and_add_all(spine_array_atlas_page array, spine_array_atlas_page inValue); +SPINE_C_API void spine_array_atlas_page_clear_and_add_all(spine_array_atlas_page array, /*@null*/ spine_array_atlas_page inValue); SPINE_C_API void spine_array_atlas_page_remove_at(spine_array_atlas_page array, size_t inIndex); -SPINE_C_API bool spine_array_atlas_page_contains(spine_array_atlas_page array, spine_atlas_page inValue); +SPINE_C_API bool spine_array_atlas_page_contains(spine_array_atlas_page array, /*@null*/ spine_atlas_page inValue); -SPINE_C_API int spine_array_atlas_page_index_of(spine_array_atlas_page array, spine_atlas_page inValue); +SPINE_C_API int spine_array_atlas_page_index_of(spine_array_atlas_page array, /*@null*/ spine_atlas_page inValue); -SPINE_C_API spine_atlas_page *spine_array_atlas_page_buffer(spine_array_atlas_page array); +SPINE_C_API /*@null*/ spine_atlas_page *spine_array_atlas_page_buffer(spine_array_atlas_page array); SPINE_C_API spine_array_atlas_region spine_array_atlas_region_create(void); @@ -244,24 +246,24 @@ SPINE_C_API size_t spine_array_atlas_region_get_capacity(spine_array_atlas_regio SPINE_C_API size_t spine_array_atlas_region_size(spine_array_atlas_region array); -SPINE_C_API spine_array_atlas_region spine_array_atlas_region_set_size(spine_array_atlas_region array, size_t newSize, - spine_atlas_region defaultValue); +SPINE_C_API /*@null*/ spine_array_atlas_region spine_array_atlas_region_set_size(spine_array_atlas_region array, size_t newSize, + /*@null*/ spine_atlas_region defaultValue); SPINE_C_API void spine_array_atlas_region_ensure_capacity(spine_array_atlas_region array, size_t newCapacity); -SPINE_C_API void spine_array_atlas_region_add(spine_array_atlas_region array, spine_atlas_region inValue); +SPINE_C_API void spine_array_atlas_region_add(spine_array_atlas_region array, /*@null*/ spine_atlas_region inValue); -SPINE_C_API void spine_array_atlas_region_add_all(spine_array_atlas_region array, spine_array_atlas_region inValue); +SPINE_C_API void spine_array_atlas_region_add_all(spine_array_atlas_region array, /*@null*/ spine_array_atlas_region inValue); -SPINE_C_API void spine_array_atlas_region_clear_and_add_all(spine_array_atlas_region array, spine_array_atlas_region inValue); +SPINE_C_API void spine_array_atlas_region_clear_and_add_all(spine_array_atlas_region array, /*@null*/ spine_array_atlas_region inValue); SPINE_C_API void spine_array_atlas_region_remove_at(spine_array_atlas_region array, size_t inIndex); -SPINE_C_API bool spine_array_atlas_region_contains(spine_array_atlas_region array, spine_atlas_region inValue); +SPINE_C_API bool spine_array_atlas_region_contains(spine_array_atlas_region array, /*@null*/ spine_atlas_region inValue); -SPINE_C_API int spine_array_atlas_region_index_of(spine_array_atlas_region array, spine_atlas_region inValue); +SPINE_C_API int spine_array_atlas_region_index_of(spine_array_atlas_region array, /*@null*/ spine_atlas_region inValue); -SPINE_C_API spine_atlas_region *spine_array_atlas_region_buffer(spine_array_atlas_region array); +SPINE_C_API /*@null*/ spine_atlas_region *spine_array_atlas_region_buffer(spine_array_atlas_region array); SPINE_C_API spine_array_attachment spine_array_attachment_create(void); @@ -273,23 +275,24 @@ SPINE_C_API size_t spine_array_attachment_get_capacity(spine_array_attachment ar SPINE_C_API size_t spine_array_attachment_size(spine_array_attachment array); -SPINE_C_API spine_array_attachment spine_array_attachment_set_size(spine_array_attachment array, size_t newSize, spine_attachment defaultValue); +SPINE_C_API /*@null*/ spine_array_attachment spine_array_attachment_set_size(spine_array_attachment array, size_t newSize, + /*@null*/ spine_attachment defaultValue); SPINE_C_API void spine_array_attachment_ensure_capacity(spine_array_attachment array, size_t newCapacity); -SPINE_C_API void spine_array_attachment_add(spine_array_attachment array, spine_attachment inValue); +SPINE_C_API void spine_array_attachment_add(spine_array_attachment array, /*@null*/ spine_attachment inValue); -SPINE_C_API void spine_array_attachment_add_all(spine_array_attachment array, spine_array_attachment inValue); +SPINE_C_API void spine_array_attachment_add_all(spine_array_attachment array, /*@null*/ spine_array_attachment inValue); -SPINE_C_API void spine_array_attachment_clear_and_add_all(spine_array_attachment array, spine_array_attachment inValue); +SPINE_C_API void spine_array_attachment_clear_and_add_all(spine_array_attachment array, /*@null*/ spine_array_attachment inValue); SPINE_C_API void spine_array_attachment_remove_at(spine_array_attachment array, size_t inIndex); -SPINE_C_API bool spine_array_attachment_contains(spine_array_attachment array, spine_attachment inValue); +SPINE_C_API bool spine_array_attachment_contains(spine_array_attachment array, /*@null*/ spine_attachment inValue); -SPINE_C_API int spine_array_attachment_index_of(spine_array_attachment array, spine_attachment inValue); +SPINE_C_API int spine_array_attachment_index_of(spine_array_attachment array, /*@null*/ spine_attachment inValue); -SPINE_C_API spine_attachment *spine_array_attachment_buffer(spine_array_attachment array); +SPINE_C_API /*@null*/ spine_attachment *spine_array_attachment_buffer(spine_array_attachment array); SPINE_C_API spine_array_bone spine_array_bone_create(void); @@ -301,23 +304,23 @@ SPINE_C_API size_t spine_array_bone_get_capacity(spine_array_bone array); SPINE_C_API size_t spine_array_bone_size(spine_array_bone array); -SPINE_C_API spine_array_bone spine_array_bone_set_size(spine_array_bone array, size_t newSize, spine_bone defaultValue); +SPINE_C_API /*@null*/ spine_array_bone spine_array_bone_set_size(spine_array_bone array, size_t newSize, /*@null*/ spine_bone defaultValue); SPINE_C_API void spine_array_bone_ensure_capacity(spine_array_bone array, size_t newCapacity); -SPINE_C_API void spine_array_bone_add(spine_array_bone array, spine_bone inValue); +SPINE_C_API void spine_array_bone_add(spine_array_bone array, /*@null*/ spine_bone inValue); -SPINE_C_API void spine_array_bone_add_all(spine_array_bone array, spine_array_bone inValue); +SPINE_C_API void spine_array_bone_add_all(spine_array_bone array, /*@null*/ spine_array_bone inValue); -SPINE_C_API void spine_array_bone_clear_and_add_all(spine_array_bone array, spine_array_bone inValue); +SPINE_C_API void spine_array_bone_clear_and_add_all(spine_array_bone array, /*@null*/ spine_array_bone inValue); SPINE_C_API void spine_array_bone_remove_at(spine_array_bone array, size_t inIndex); -SPINE_C_API bool spine_array_bone_contains(spine_array_bone array, spine_bone inValue); +SPINE_C_API bool spine_array_bone_contains(spine_array_bone array, /*@null*/ spine_bone inValue); -SPINE_C_API int spine_array_bone_index_of(spine_array_bone array, spine_bone inValue); +SPINE_C_API int spine_array_bone_index_of(spine_array_bone array, /*@null*/ spine_bone inValue); -SPINE_C_API spine_bone *spine_array_bone_buffer(spine_array_bone array); +SPINE_C_API /*@null*/ spine_bone *spine_array_bone_buffer(spine_array_bone array); SPINE_C_API spine_array_bone_data spine_array_bone_data_create(void); @@ -329,23 +332,24 @@ SPINE_C_API size_t spine_array_bone_data_get_capacity(spine_array_bone_data arra SPINE_C_API size_t spine_array_bone_data_size(spine_array_bone_data array); -SPINE_C_API spine_array_bone_data spine_array_bone_data_set_size(spine_array_bone_data array, size_t newSize, spine_bone_data defaultValue); +SPINE_C_API /*@null*/ spine_array_bone_data spine_array_bone_data_set_size(spine_array_bone_data array, size_t newSize, + /*@null*/ spine_bone_data defaultValue); SPINE_C_API void spine_array_bone_data_ensure_capacity(spine_array_bone_data array, size_t newCapacity); -SPINE_C_API void spine_array_bone_data_add(spine_array_bone_data array, spine_bone_data inValue); +SPINE_C_API void spine_array_bone_data_add(spine_array_bone_data array, /*@null*/ spine_bone_data inValue); -SPINE_C_API void spine_array_bone_data_add_all(spine_array_bone_data array, spine_array_bone_data inValue); +SPINE_C_API void spine_array_bone_data_add_all(spine_array_bone_data array, /*@null*/ spine_array_bone_data inValue); -SPINE_C_API void spine_array_bone_data_clear_and_add_all(spine_array_bone_data array, spine_array_bone_data inValue); +SPINE_C_API void spine_array_bone_data_clear_and_add_all(spine_array_bone_data array, /*@null*/ spine_array_bone_data inValue); SPINE_C_API void spine_array_bone_data_remove_at(spine_array_bone_data array, size_t inIndex); -SPINE_C_API bool spine_array_bone_data_contains(spine_array_bone_data array, spine_bone_data inValue); +SPINE_C_API bool spine_array_bone_data_contains(spine_array_bone_data array, /*@null*/ spine_bone_data inValue); -SPINE_C_API int spine_array_bone_data_index_of(spine_array_bone_data array, spine_bone_data inValue); +SPINE_C_API int spine_array_bone_data_index_of(spine_array_bone_data array, /*@null*/ spine_bone_data inValue); -SPINE_C_API spine_bone_data *spine_array_bone_data_buffer(spine_array_bone_data array); +SPINE_C_API /*@null*/ spine_bone_data *spine_array_bone_data_buffer(spine_array_bone_data array); SPINE_C_API spine_array_bone_pose spine_array_bone_pose_create(void); @@ -357,23 +361,24 @@ SPINE_C_API size_t spine_array_bone_pose_get_capacity(spine_array_bone_pose arra SPINE_C_API size_t spine_array_bone_pose_size(spine_array_bone_pose array); -SPINE_C_API spine_array_bone_pose spine_array_bone_pose_set_size(spine_array_bone_pose array, size_t newSize, spine_bone_pose defaultValue); +SPINE_C_API /*@null*/ spine_array_bone_pose spine_array_bone_pose_set_size(spine_array_bone_pose array, size_t newSize, + /*@null*/ spine_bone_pose defaultValue); SPINE_C_API void spine_array_bone_pose_ensure_capacity(spine_array_bone_pose array, size_t newCapacity); -SPINE_C_API void spine_array_bone_pose_add(spine_array_bone_pose array, spine_bone_pose inValue); +SPINE_C_API void spine_array_bone_pose_add(spine_array_bone_pose array, /*@null*/ spine_bone_pose inValue); -SPINE_C_API void spine_array_bone_pose_add_all(spine_array_bone_pose array, spine_array_bone_pose inValue); +SPINE_C_API void spine_array_bone_pose_add_all(spine_array_bone_pose array, /*@null*/ spine_array_bone_pose inValue); -SPINE_C_API void spine_array_bone_pose_clear_and_add_all(spine_array_bone_pose array, spine_array_bone_pose inValue); +SPINE_C_API void spine_array_bone_pose_clear_and_add_all(spine_array_bone_pose array, /*@null*/ spine_array_bone_pose inValue); SPINE_C_API void spine_array_bone_pose_remove_at(spine_array_bone_pose array, size_t inIndex); -SPINE_C_API bool spine_array_bone_pose_contains(spine_array_bone_pose array, spine_bone_pose inValue); +SPINE_C_API bool spine_array_bone_pose_contains(spine_array_bone_pose array, /*@null*/ spine_bone_pose inValue); -SPINE_C_API int spine_array_bone_pose_index_of(spine_array_bone_pose array, spine_bone_pose inValue); +SPINE_C_API int spine_array_bone_pose_index_of(spine_array_bone_pose array, /*@null*/ spine_bone_pose inValue); -SPINE_C_API spine_bone_pose *spine_array_bone_pose_buffer(spine_array_bone_pose array); +SPINE_C_API /*@null*/ spine_bone_pose *spine_array_bone_pose_buffer(spine_array_bone_pose array); SPINE_C_API spine_array_bounding_box_attachment spine_array_bounding_box_attachment_create(void); @@ -385,26 +390,28 @@ SPINE_C_API size_t spine_array_bounding_box_attachment_get_capacity(spine_array_ SPINE_C_API size_t spine_array_bounding_box_attachment_size(spine_array_bounding_box_attachment array); -SPINE_C_API spine_array_bounding_box_attachment spine_array_bounding_box_attachment_set_size(spine_array_bounding_box_attachment array, - size_t newSize, - spine_bounding_box_attachment defaultValue); +SPINE_C_API /*@null*/ spine_array_bounding_box_attachment spine_array_bounding_box_attachment_set_size( + spine_array_bounding_box_attachment array, size_t newSize, /*@null*/ spine_bounding_box_attachment defaultValue); SPINE_C_API void spine_array_bounding_box_attachment_ensure_capacity(spine_array_bounding_box_attachment array, size_t newCapacity); -SPINE_C_API void spine_array_bounding_box_attachment_add(spine_array_bounding_box_attachment array, spine_bounding_box_attachment inValue); +SPINE_C_API void spine_array_bounding_box_attachment_add(spine_array_bounding_box_attachment array, /*@null*/ spine_bounding_box_attachment inValue); -SPINE_C_API void spine_array_bounding_box_attachment_add_all(spine_array_bounding_box_attachment array, spine_array_bounding_box_attachment inValue); +SPINE_C_API void spine_array_bounding_box_attachment_add_all(spine_array_bounding_box_attachment array, + /*@null*/ spine_array_bounding_box_attachment inValue); SPINE_C_API void spine_array_bounding_box_attachment_clear_and_add_all(spine_array_bounding_box_attachment array, - spine_array_bounding_box_attachment inValue); + /*@null*/ spine_array_bounding_box_attachment inValue); SPINE_C_API void spine_array_bounding_box_attachment_remove_at(spine_array_bounding_box_attachment array, size_t inIndex); -SPINE_C_API bool spine_array_bounding_box_attachment_contains(spine_array_bounding_box_attachment array, spine_bounding_box_attachment inValue); +SPINE_C_API bool spine_array_bounding_box_attachment_contains(spine_array_bounding_box_attachment array, + /*@null*/ spine_bounding_box_attachment inValue); -SPINE_C_API int spine_array_bounding_box_attachment_index_of(spine_array_bounding_box_attachment array, spine_bounding_box_attachment inValue); +SPINE_C_API int spine_array_bounding_box_attachment_index_of(spine_array_bounding_box_attachment array, + /*@null*/ spine_bounding_box_attachment inValue); -SPINE_C_API spine_bounding_box_attachment *spine_array_bounding_box_attachment_buffer(spine_array_bounding_box_attachment array); +SPINE_C_API /*@null*/ spine_bounding_box_attachment *spine_array_bounding_box_attachment_buffer(spine_array_bounding_box_attachment array); SPINE_C_API spine_array_constraint spine_array_constraint_create(void); @@ -416,23 +423,24 @@ SPINE_C_API size_t spine_array_constraint_get_capacity(spine_array_constraint ar SPINE_C_API size_t spine_array_constraint_size(spine_array_constraint array); -SPINE_C_API spine_array_constraint spine_array_constraint_set_size(spine_array_constraint array, size_t newSize, spine_constraint defaultValue); +SPINE_C_API /*@null*/ spine_array_constraint spine_array_constraint_set_size(spine_array_constraint array, size_t newSize, + /*@null*/ spine_constraint defaultValue); SPINE_C_API void spine_array_constraint_ensure_capacity(spine_array_constraint array, size_t newCapacity); -SPINE_C_API void spine_array_constraint_add(spine_array_constraint array, spine_constraint inValue); +SPINE_C_API void spine_array_constraint_add(spine_array_constraint array, /*@null*/ spine_constraint inValue); -SPINE_C_API void spine_array_constraint_add_all(spine_array_constraint array, spine_array_constraint inValue); +SPINE_C_API void spine_array_constraint_add_all(spine_array_constraint array, /*@null*/ spine_array_constraint inValue); -SPINE_C_API void spine_array_constraint_clear_and_add_all(spine_array_constraint array, spine_array_constraint inValue); +SPINE_C_API void spine_array_constraint_clear_and_add_all(spine_array_constraint array, /*@null*/ spine_array_constraint inValue); SPINE_C_API void spine_array_constraint_remove_at(spine_array_constraint array, size_t inIndex); -SPINE_C_API bool spine_array_constraint_contains(spine_array_constraint array, spine_constraint inValue); +SPINE_C_API bool spine_array_constraint_contains(spine_array_constraint array, /*@null*/ spine_constraint inValue); -SPINE_C_API int spine_array_constraint_index_of(spine_array_constraint array, spine_constraint inValue); +SPINE_C_API int spine_array_constraint_index_of(spine_array_constraint array, /*@null*/ spine_constraint inValue); -SPINE_C_API spine_constraint *spine_array_constraint_buffer(spine_array_constraint array); +SPINE_C_API /*@null*/ spine_constraint *spine_array_constraint_buffer(spine_array_constraint array); SPINE_C_API spine_array_constraint_data spine_array_constraint_data_create(void); @@ -444,24 +452,24 @@ SPINE_C_API size_t spine_array_constraint_data_get_capacity(spine_array_constrai SPINE_C_API size_t spine_array_constraint_data_size(spine_array_constraint_data array); -SPINE_C_API spine_array_constraint_data spine_array_constraint_data_set_size(spine_array_constraint_data array, size_t newSize, - spine_constraint_data defaultValue); +SPINE_C_API /*@null*/ spine_array_constraint_data spine_array_constraint_data_set_size(spine_array_constraint_data array, size_t newSize, + /*@null*/ spine_constraint_data defaultValue); SPINE_C_API void spine_array_constraint_data_ensure_capacity(spine_array_constraint_data array, size_t newCapacity); -SPINE_C_API void spine_array_constraint_data_add(spine_array_constraint_data array, spine_constraint_data inValue); +SPINE_C_API void spine_array_constraint_data_add(spine_array_constraint_data array, /*@null*/ spine_constraint_data inValue); -SPINE_C_API void spine_array_constraint_data_add_all(spine_array_constraint_data array, spine_array_constraint_data inValue); +SPINE_C_API void spine_array_constraint_data_add_all(spine_array_constraint_data array, /*@null*/ spine_array_constraint_data inValue); -SPINE_C_API void spine_array_constraint_data_clear_and_add_all(spine_array_constraint_data array, spine_array_constraint_data inValue); +SPINE_C_API void spine_array_constraint_data_clear_and_add_all(spine_array_constraint_data array, /*@null*/ spine_array_constraint_data inValue); SPINE_C_API void spine_array_constraint_data_remove_at(spine_array_constraint_data array, size_t inIndex); -SPINE_C_API bool spine_array_constraint_data_contains(spine_array_constraint_data array, spine_constraint_data inValue); +SPINE_C_API bool spine_array_constraint_data_contains(spine_array_constraint_data array, /*@null*/ spine_constraint_data inValue); -SPINE_C_API int spine_array_constraint_data_index_of(spine_array_constraint_data array, spine_constraint_data inValue); +SPINE_C_API int spine_array_constraint_data_index_of(spine_array_constraint_data array, /*@null*/ spine_constraint_data inValue); -SPINE_C_API spine_constraint_data *spine_array_constraint_data_buffer(spine_array_constraint_data array); +SPINE_C_API /*@null*/ spine_constraint_data *spine_array_constraint_data_buffer(spine_array_constraint_data array); SPINE_C_API spine_array_event spine_array_event_create(void); @@ -473,23 +481,23 @@ SPINE_C_API size_t spine_array_event_get_capacity(spine_array_event array); SPINE_C_API size_t spine_array_event_size(spine_array_event array); -SPINE_C_API spine_array_event spine_array_event_set_size(spine_array_event array, size_t newSize, spine_event defaultValue); +SPINE_C_API /*@null*/ spine_array_event spine_array_event_set_size(spine_array_event array, size_t newSize, /*@null*/ spine_event defaultValue); SPINE_C_API void spine_array_event_ensure_capacity(spine_array_event array, size_t newCapacity); -SPINE_C_API void spine_array_event_add(spine_array_event array, spine_event inValue); +SPINE_C_API void spine_array_event_add(spine_array_event array, /*@null*/ spine_event inValue); -SPINE_C_API void spine_array_event_add_all(spine_array_event array, spine_array_event inValue); +SPINE_C_API void spine_array_event_add_all(spine_array_event array, /*@null*/ spine_array_event inValue); -SPINE_C_API void spine_array_event_clear_and_add_all(spine_array_event array, spine_array_event inValue); +SPINE_C_API void spine_array_event_clear_and_add_all(spine_array_event array, /*@null*/ spine_array_event inValue); SPINE_C_API void spine_array_event_remove_at(spine_array_event array, size_t inIndex); -SPINE_C_API bool spine_array_event_contains(spine_array_event array, spine_event inValue); +SPINE_C_API bool spine_array_event_contains(spine_array_event array, /*@null*/ spine_event inValue); -SPINE_C_API int spine_array_event_index_of(spine_array_event array, spine_event inValue); +SPINE_C_API int spine_array_event_index_of(spine_array_event array, /*@null*/ spine_event inValue); -SPINE_C_API spine_event *spine_array_event_buffer(spine_array_event array); +SPINE_C_API /*@null*/ spine_event *spine_array_event_buffer(spine_array_event array); SPINE_C_API spine_array_event_data spine_array_event_data_create(void); @@ -501,23 +509,24 @@ SPINE_C_API size_t spine_array_event_data_get_capacity(spine_array_event_data ar SPINE_C_API size_t spine_array_event_data_size(spine_array_event_data array); -SPINE_C_API spine_array_event_data spine_array_event_data_set_size(spine_array_event_data array, size_t newSize, spine_event_data defaultValue); +SPINE_C_API /*@null*/ spine_array_event_data spine_array_event_data_set_size(spine_array_event_data array, size_t newSize, + /*@null*/ spine_event_data defaultValue); SPINE_C_API void spine_array_event_data_ensure_capacity(spine_array_event_data array, size_t newCapacity); -SPINE_C_API void spine_array_event_data_add(spine_array_event_data array, spine_event_data inValue); +SPINE_C_API void spine_array_event_data_add(spine_array_event_data array, /*@null*/ spine_event_data inValue); -SPINE_C_API void spine_array_event_data_add_all(spine_array_event_data array, spine_array_event_data inValue); +SPINE_C_API void spine_array_event_data_add_all(spine_array_event_data array, /*@null*/ spine_array_event_data inValue); -SPINE_C_API void spine_array_event_data_clear_and_add_all(spine_array_event_data array, spine_array_event_data inValue); +SPINE_C_API void spine_array_event_data_clear_and_add_all(spine_array_event_data array, /*@null*/ spine_array_event_data inValue); SPINE_C_API void spine_array_event_data_remove_at(spine_array_event_data array, size_t inIndex); -SPINE_C_API bool spine_array_event_data_contains(spine_array_event_data array, spine_event_data inValue); +SPINE_C_API bool spine_array_event_data_contains(spine_array_event_data array, /*@null*/ spine_event_data inValue); -SPINE_C_API int spine_array_event_data_index_of(spine_array_event_data array, spine_event_data inValue); +SPINE_C_API int spine_array_event_data_index_of(spine_array_event_data array, /*@null*/ spine_event_data inValue); -SPINE_C_API spine_event_data *spine_array_event_data_buffer(spine_array_event_data array); +SPINE_C_API /*@null*/ spine_event_data *spine_array_event_data_buffer(spine_array_event_data array); SPINE_C_API spine_array_from_property spine_array_from_property_create(void); @@ -529,24 +538,24 @@ SPINE_C_API size_t spine_array_from_property_get_capacity(spine_array_from_prope SPINE_C_API size_t spine_array_from_property_size(spine_array_from_property array); -SPINE_C_API spine_array_from_property spine_array_from_property_set_size(spine_array_from_property array, size_t newSize, - spine_from_property defaultValue); +SPINE_C_API /*@null*/ spine_array_from_property spine_array_from_property_set_size(spine_array_from_property array, size_t newSize, + /*@null*/ spine_from_property defaultValue); SPINE_C_API void spine_array_from_property_ensure_capacity(spine_array_from_property array, size_t newCapacity); -SPINE_C_API void spine_array_from_property_add(spine_array_from_property array, spine_from_property inValue); +SPINE_C_API void spine_array_from_property_add(spine_array_from_property array, /*@null*/ spine_from_property inValue); -SPINE_C_API void spine_array_from_property_add_all(spine_array_from_property array, spine_array_from_property inValue); +SPINE_C_API void spine_array_from_property_add_all(spine_array_from_property array, /*@null*/ spine_array_from_property inValue); -SPINE_C_API void spine_array_from_property_clear_and_add_all(spine_array_from_property array, spine_array_from_property inValue); +SPINE_C_API void spine_array_from_property_clear_and_add_all(spine_array_from_property array, /*@null*/ spine_array_from_property inValue); SPINE_C_API void spine_array_from_property_remove_at(spine_array_from_property array, size_t inIndex); -SPINE_C_API bool spine_array_from_property_contains(spine_array_from_property array, spine_from_property inValue); +SPINE_C_API bool spine_array_from_property_contains(spine_array_from_property array, /*@null*/ spine_from_property inValue); -SPINE_C_API int spine_array_from_property_index_of(spine_array_from_property array, spine_from_property inValue); +SPINE_C_API int spine_array_from_property_index_of(spine_array_from_property array, /*@null*/ spine_from_property inValue); -SPINE_C_API spine_from_property *spine_array_from_property_buffer(spine_array_from_property array); +SPINE_C_API /*@null*/ spine_from_property *spine_array_from_property_buffer(spine_array_from_property array); SPINE_C_API spine_array_physics_constraint spine_array_physics_constraint_create(void); @@ -558,24 +567,25 @@ SPINE_C_API size_t spine_array_physics_constraint_get_capacity(spine_array_physi SPINE_C_API size_t spine_array_physics_constraint_size(spine_array_physics_constraint array); -SPINE_C_API spine_array_physics_constraint spine_array_physics_constraint_set_size(spine_array_physics_constraint array, size_t newSize, - spine_physics_constraint defaultValue); +SPINE_C_API /*@null*/ spine_array_physics_constraint spine_array_physics_constraint_set_size(spine_array_physics_constraint array, size_t newSize, + /*@null*/ spine_physics_constraint defaultValue); SPINE_C_API void spine_array_physics_constraint_ensure_capacity(spine_array_physics_constraint array, size_t newCapacity); -SPINE_C_API void spine_array_physics_constraint_add(spine_array_physics_constraint array, spine_physics_constraint inValue); +SPINE_C_API void spine_array_physics_constraint_add(spine_array_physics_constraint array, /*@null*/ spine_physics_constraint inValue); -SPINE_C_API void spine_array_physics_constraint_add_all(spine_array_physics_constraint array, spine_array_physics_constraint inValue); +SPINE_C_API void spine_array_physics_constraint_add_all(spine_array_physics_constraint array, /*@null*/ spine_array_physics_constraint inValue); -SPINE_C_API void spine_array_physics_constraint_clear_and_add_all(spine_array_physics_constraint array, spine_array_physics_constraint inValue); +SPINE_C_API void spine_array_physics_constraint_clear_and_add_all(spine_array_physics_constraint array, + /*@null*/ spine_array_physics_constraint inValue); SPINE_C_API void spine_array_physics_constraint_remove_at(spine_array_physics_constraint array, size_t inIndex); -SPINE_C_API bool spine_array_physics_constraint_contains(spine_array_physics_constraint array, spine_physics_constraint inValue); +SPINE_C_API bool spine_array_physics_constraint_contains(spine_array_physics_constraint array, /*@null*/ spine_physics_constraint inValue); -SPINE_C_API int spine_array_physics_constraint_index_of(spine_array_physics_constraint array, spine_physics_constraint inValue); +SPINE_C_API int spine_array_physics_constraint_index_of(spine_array_physics_constraint array, /*@null*/ spine_physics_constraint inValue); -SPINE_C_API spine_physics_constraint *spine_array_physics_constraint_buffer(spine_array_physics_constraint array); +SPINE_C_API /*@null*/ spine_physics_constraint *spine_array_physics_constraint_buffer(spine_array_physics_constraint array); SPINE_C_API spine_array_polygon spine_array_polygon_create(void); @@ -587,23 +597,24 @@ SPINE_C_API size_t spine_array_polygon_get_capacity(spine_array_polygon array); SPINE_C_API size_t spine_array_polygon_size(spine_array_polygon array); -SPINE_C_API spine_array_polygon spine_array_polygon_set_size(spine_array_polygon array, size_t newSize, spine_polygon defaultValue); +SPINE_C_API /*@null*/ spine_array_polygon spine_array_polygon_set_size(spine_array_polygon array, size_t newSize, + /*@null*/ spine_polygon defaultValue); SPINE_C_API void spine_array_polygon_ensure_capacity(spine_array_polygon array, size_t newCapacity); -SPINE_C_API void spine_array_polygon_add(spine_array_polygon array, spine_polygon inValue); +SPINE_C_API void spine_array_polygon_add(spine_array_polygon array, /*@null*/ spine_polygon inValue); -SPINE_C_API void spine_array_polygon_add_all(spine_array_polygon array, spine_array_polygon inValue); +SPINE_C_API void spine_array_polygon_add_all(spine_array_polygon array, /*@null*/ spine_array_polygon inValue); -SPINE_C_API void spine_array_polygon_clear_and_add_all(spine_array_polygon array, spine_array_polygon inValue); +SPINE_C_API void spine_array_polygon_clear_and_add_all(spine_array_polygon array, /*@null*/ spine_array_polygon inValue); SPINE_C_API void spine_array_polygon_remove_at(spine_array_polygon array, size_t inIndex); -SPINE_C_API bool spine_array_polygon_contains(spine_array_polygon array, spine_polygon inValue); +SPINE_C_API bool spine_array_polygon_contains(spine_array_polygon array, /*@null*/ spine_polygon inValue); -SPINE_C_API int spine_array_polygon_index_of(spine_array_polygon array, spine_polygon inValue); +SPINE_C_API int spine_array_polygon_index_of(spine_array_polygon array, /*@null*/ spine_polygon inValue); -SPINE_C_API spine_polygon *spine_array_polygon_buffer(spine_array_polygon array); +SPINE_C_API /*@null*/ spine_polygon *spine_array_polygon_buffer(spine_array_polygon array); SPINE_C_API spine_array_skin spine_array_skin_create(void); @@ -615,23 +626,23 @@ SPINE_C_API size_t spine_array_skin_get_capacity(spine_array_skin array); SPINE_C_API size_t spine_array_skin_size(spine_array_skin array); -SPINE_C_API spine_array_skin spine_array_skin_set_size(spine_array_skin array, size_t newSize, spine_skin defaultValue); +SPINE_C_API /*@null*/ spine_array_skin spine_array_skin_set_size(spine_array_skin array, size_t newSize, /*@null*/ spine_skin defaultValue); SPINE_C_API void spine_array_skin_ensure_capacity(spine_array_skin array, size_t newCapacity); -SPINE_C_API void spine_array_skin_add(spine_array_skin array, spine_skin inValue); +SPINE_C_API void spine_array_skin_add(spine_array_skin array, /*@null*/ spine_skin inValue); -SPINE_C_API void spine_array_skin_add_all(spine_array_skin array, spine_array_skin inValue); +SPINE_C_API void spine_array_skin_add_all(spine_array_skin array, /*@null*/ spine_array_skin inValue); -SPINE_C_API void spine_array_skin_clear_and_add_all(spine_array_skin array, spine_array_skin inValue); +SPINE_C_API void spine_array_skin_clear_and_add_all(spine_array_skin array, /*@null*/ spine_array_skin inValue); SPINE_C_API void spine_array_skin_remove_at(spine_array_skin array, size_t inIndex); -SPINE_C_API bool spine_array_skin_contains(spine_array_skin array, spine_skin inValue); +SPINE_C_API bool spine_array_skin_contains(spine_array_skin array, /*@null*/ spine_skin inValue); -SPINE_C_API int spine_array_skin_index_of(spine_array_skin array, spine_skin inValue); +SPINE_C_API int spine_array_skin_index_of(spine_array_skin array, /*@null*/ spine_skin inValue); -SPINE_C_API spine_skin *spine_array_skin_buffer(spine_array_skin array); +SPINE_C_API /*@null*/ spine_skin *spine_array_skin_buffer(spine_array_skin array); SPINE_C_API spine_array_slot spine_array_slot_create(void); @@ -643,23 +654,23 @@ SPINE_C_API size_t spine_array_slot_get_capacity(spine_array_slot array); SPINE_C_API size_t spine_array_slot_size(spine_array_slot array); -SPINE_C_API spine_array_slot spine_array_slot_set_size(spine_array_slot array, size_t newSize, spine_slot defaultValue); +SPINE_C_API /*@null*/ spine_array_slot spine_array_slot_set_size(spine_array_slot array, size_t newSize, /*@null*/ spine_slot defaultValue); SPINE_C_API void spine_array_slot_ensure_capacity(spine_array_slot array, size_t newCapacity); -SPINE_C_API void spine_array_slot_add(spine_array_slot array, spine_slot inValue); +SPINE_C_API void spine_array_slot_add(spine_array_slot array, /*@null*/ spine_slot inValue); -SPINE_C_API void spine_array_slot_add_all(spine_array_slot array, spine_array_slot inValue); +SPINE_C_API void spine_array_slot_add_all(spine_array_slot array, /*@null*/ spine_array_slot inValue); -SPINE_C_API void spine_array_slot_clear_and_add_all(spine_array_slot array, spine_array_slot inValue); +SPINE_C_API void spine_array_slot_clear_and_add_all(spine_array_slot array, /*@null*/ spine_array_slot inValue); SPINE_C_API void spine_array_slot_remove_at(spine_array_slot array, size_t inIndex); -SPINE_C_API bool spine_array_slot_contains(spine_array_slot array, spine_slot inValue); +SPINE_C_API bool spine_array_slot_contains(spine_array_slot array, /*@null*/ spine_slot inValue); -SPINE_C_API int spine_array_slot_index_of(spine_array_slot array, spine_slot inValue); +SPINE_C_API int spine_array_slot_index_of(spine_array_slot array, /*@null*/ spine_slot inValue); -SPINE_C_API spine_slot *spine_array_slot_buffer(spine_array_slot array); +SPINE_C_API /*@null*/ spine_slot *spine_array_slot_buffer(spine_array_slot array); SPINE_C_API spine_array_slot_data spine_array_slot_data_create(void); @@ -671,23 +682,24 @@ SPINE_C_API size_t spine_array_slot_data_get_capacity(spine_array_slot_data arra SPINE_C_API size_t spine_array_slot_data_size(spine_array_slot_data array); -SPINE_C_API spine_array_slot_data spine_array_slot_data_set_size(spine_array_slot_data array, size_t newSize, spine_slot_data defaultValue); +SPINE_C_API /*@null*/ spine_array_slot_data spine_array_slot_data_set_size(spine_array_slot_data array, size_t newSize, + /*@null*/ spine_slot_data defaultValue); SPINE_C_API void spine_array_slot_data_ensure_capacity(spine_array_slot_data array, size_t newCapacity); -SPINE_C_API void spine_array_slot_data_add(spine_array_slot_data array, spine_slot_data inValue); +SPINE_C_API void spine_array_slot_data_add(spine_array_slot_data array, /*@null*/ spine_slot_data inValue); -SPINE_C_API void spine_array_slot_data_add_all(spine_array_slot_data array, spine_array_slot_data inValue); +SPINE_C_API void spine_array_slot_data_add_all(spine_array_slot_data array, /*@null*/ spine_array_slot_data inValue); -SPINE_C_API void spine_array_slot_data_clear_and_add_all(spine_array_slot_data array, spine_array_slot_data inValue); +SPINE_C_API void spine_array_slot_data_clear_and_add_all(spine_array_slot_data array, /*@null*/ spine_array_slot_data inValue); SPINE_C_API void spine_array_slot_data_remove_at(spine_array_slot_data array, size_t inIndex); -SPINE_C_API bool spine_array_slot_data_contains(spine_array_slot_data array, spine_slot_data inValue); +SPINE_C_API bool spine_array_slot_data_contains(spine_array_slot_data array, /*@null*/ spine_slot_data inValue); -SPINE_C_API int spine_array_slot_data_index_of(spine_array_slot_data array, spine_slot_data inValue); +SPINE_C_API int spine_array_slot_data_index_of(spine_array_slot_data array, /*@null*/ spine_slot_data inValue); -SPINE_C_API spine_slot_data *spine_array_slot_data_buffer(spine_array_slot_data array); +SPINE_C_API /*@null*/ spine_slot_data *spine_array_slot_data_buffer(spine_array_slot_data array); SPINE_C_API spine_array_texture_region spine_array_texture_region_create(void); @@ -699,24 +711,24 @@ SPINE_C_API size_t spine_array_texture_region_get_capacity(spine_array_texture_r SPINE_C_API size_t spine_array_texture_region_size(spine_array_texture_region array); -SPINE_C_API spine_array_texture_region spine_array_texture_region_set_size(spine_array_texture_region array, size_t newSize, - spine_texture_region defaultValue); +SPINE_C_API /*@null*/ spine_array_texture_region spine_array_texture_region_set_size(spine_array_texture_region array, size_t newSize, + /*@null*/ spine_texture_region defaultValue); SPINE_C_API void spine_array_texture_region_ensure_capacity(spine_array_texture_region array, size_t newCapacity); -SPINE_C_API void spine_array_texture_region_add(spine_array_texture_region array, spine_texture_region inValue); +SPINE_C_API void spine_array_texture_region_add(spine_array_texture_region array, /*@null*/ spine_texture_region inValue); -SPINE_C_API void spine_array_texture_region_add_all(spine_array_texture_region array, spine_array_texture_region inValue); +SPINE_C_API void spine_array_texture_region_add_all(spine_array_texture_region array, /*@null*/ spine_array_texture_region inValue); -SPINE_C_API void spine_array_texture_region_clear_and_add_all(spine_array_texture_region array, spine_array_texture_region inValue); +SPINE_C_API void spine_array_texture_region_clear_and_add_all(spine_array_texture_region array, /*@null*/ spine_array_texture_region inValue); SPINE_C_API void spine_array_texture_region_remove_at(spine_array_texture_region array, size_t inIndex); -SPINE_C_API bool spine_array_texture_region_contains(spine_array_texture_region array, spine_texture_region inValue); +SPINE_C_API bool spine_array_texture_region_contains(spine_array_texture_region array, /*@null*/ spine_texture_region inValue); -SPINE_C_API int spine_array_texture_region_index_of(spine_array_texture_region array, spine_texture_region inValue); +SPINE_C_API int spine_array_texture_region_index_of(spine_array_texture_region array, /*@null*/ spine_texture_region inValue); -SPINE_C_API spine_texture_region *spine_array_texture_region_buffer(spine_array_texture_region array); +SPINE_C_API /*@null*/ spine_texture_region *spine_array_texture_region_buffer(spine_array_texture_region array); SPINE_C_API spine_array_timeline spine_array_timeline_create(void); @@ -728,23 +740,24 @@ SPINE_C_API size_t spine_array_timeline_get_capacity(spine_array_timeline array) SPINE_C_API size_t spine_array_timeline_size(spine_array_timeline array); -SPINE_C_API spine_array_timeline spine_array_timeline_set_size(spine_array_timeline array, size_t newSize, spine_timeline defaultValue); +SPINE_C_API /*@null*/ spine_array_timeline spine_array_timeline_set_size(spine_array_timeline array, size_t newSize, + /*@null*/ spine_timeline defaultValue); SPINE_C_API void spine_array_timeline_ensure_capacity(spine_array_timeline array, size_t newCapacity); -SPINE_C_API void spine_array_timeline_add(spine_array_timeline array, spine_timeline inValue); +SPINE_C_API void spine_array_timeline_add(spine_array_timeline array, /*@null*/ spine_timeline inValue); -SPINE_C_API void spine_array_timeline_add_all(spine_array_timeline array, spine_array_timeline inValue); +SPINE_C_API void spine_array_timeline_add_all(spine_array_timeline array, /*@null*/ spine_array_timeline inValue); -SPINE_C_API void spine_array_timeline_clear_and_add_all(spine_array_timeline array, spine_array_timeline inValue); +SPINE_C_API void spine_array_timeline_clear_and_add_all(spine_array_timeline array, /*@null*/ spine_array_timeline inValue); SPINE_C_API void spine_array_timeline_remove_at(spine_array_timeline array, size_t inIndex); -SPINE_C_API bool spine_array_timeline_contains(spine_array_timeline array, spine_timeline inValue); +SPINE_C_API bool spine_array_timeline_contains(spine_array_timeline array, /*@null*/ spine_timeline inValue); -SPINE_C_API int spine_array_timeline_index_of(spine_array_timeline array, spine_timeline inValue); +SPINE_C_API int spine_array_timeline_index_of(spine_array_timeline array, /*@null*/ spine_timeline inValue); -SPINE_C_API spine_timeline *spine_array_timeline_buffer(spine_array_timeline array); +SPINE_C_API /*@null*/ spine_timeline *spine_array_timeline_buffer(spine_array_timeline array); SPINE_C_API spine_array_to_property spine_array_to_property_create(void); @@ -756,23 +769,24 @@ SPINE_C_API size_t spine_array_to_property_get_capacity(spine_array_to_property SPINE_C_API size_t spine_array_to_property_size(spine_array_to_property array); -SPINE_C_API spine_array_to_property spine_array_to_property_set_size(spine_array_to_property array, size_t newSize, spine_to_property defaultValue); +SPINE_C_API /*@null*/ spine_array_to_property spine_array_to_property_set_size(spine_array_to_property array, size_t newSize, + /*@null*/ spine_to_property defaultValue); SPINE_C_API void spine_array_to_property_ensure_capacity(spine_array_to_property array, size_t newCapacity); -SPINE_C_API void spine_array_to_property_add(spine_array_to_property array, spine_to_property inValue); +SPINE_C_API void spine_array_to_property_add(spine_array_to_property array, /*@null*/ spine_to_property inValue); -SPINE_C_API void spine_array_to_property_add_all(spine_array_to_property array, spine_array_to_property inValue); +SPINE_C_API void spine_array_to_property_add_all(spine_array_to_property array, /*@null*/ spine_array_to_property inValue); -SPINE_C_API void spine_array_to_property_clear_and_add_all(spine_array_to_property array, spine_array_to_property inValue); +SPINE_C_API void spine_array_to_property_clear_and_add_all(spine_array_to_property array, /*@null*/ spine_array_to_property inValue); SPINE_C_API void spine_array_to_property_remove_at(spine_array_to_property array, size_t inIndex); -SPINE_C_API bool spine_array_to_property_contains(spine_array_to_property array, spine_to_property inValue); +SPINE_C_API bool spine_array_to_property_contains(spine_array_to_property array, /*@null*/ spine_to_property inValue); -SPINE_C_API int spine_array_to_property_index_of(spine_array_to_property array, spine_to_property inValue); +SPINE_C_API int spine_array_to_property_index_of(spine_array_to_property array, /*@null*/ spine_to_property inValue); -SPINE_C_API spine_to_property *spine_array_to_property_buffer(spine_array_to_property array); +SPINE_C_API /*@null*/ spine_to_property *spine_array_to_property_buffer(spine_array_to_property array); SPINE_C_API spine_array_track_entry spine_array_track_entry_create(void); @@ -784,23 +798,24 @@ SPINE_C_API size_t spine_array_track_entry_get_capacity(spine_array_track_entry SPINE_C_API size_t spine_array_track_entry_size(spine_array_track_entry array); -SPINE_C_API spine_array_track_entry spine_array_track_entry_set_size(spine_array_track_entry array, size_t newSize, spine_track_entry defaultValue); +SPINE_C_API /*@null*/ spine_array_track_entry spine_array_track_entry_set_size(spine_array_track_entry array, size_t newSize, + /*@null*/ spine_track_entry defaultValue); SPINE_C_API void spine_array_track_entry_ensure_capacity(spine_array_track_entry array, size_t newCapacity); -SPINE_C_API void spine_array_track_entry_add(spine_array_track_entry array, spine_track_entry inValue); +SPINE_C_API void spine_array_track_entry_add(spine_array_track_entry array, /*@null*/ spine_track_entry inValue); -SPINE_C_API void spine_array_track_entry_add_all(spine_array_track_entry array, spine_array_track_entry inValue); +SPINE_C_API void spine_array_track_entry_add_all(spine_array_track_entry array, /*@null*/ spine_array_track_entry inValue); -SPINE_C_API void spine_array_track_entry_clear_and_add_all(spine_array_track_entry array, spine_array_track_entry inValue); +SPINE_C_API void spine_array_track_entry_clear_and_add_all(spine_array_track_entry array, /*@null*/ spine_array_track_entry inValue); SPINE_C_API void spine_array_track_entry_remove_at(spine_array_track_entry array, size_t inIndex); -SPINE_C_API bool spine_array_track_entry_contains(spine_array_track_entry array, spine_track_entry inValue); +SPINE_C_API bool spine_array_track_entry_contains(spine_array_track_entry array, /*@null*/ spine_track_entry inValue); -SPINE_C_API int spine_array_track_entry_index_of(spine_array_track_entry array, spine_track_entry inValue); +SPINE_C_API int spine_array_track_entry_index_of(spine_array_track_entry array, /*@null*/ spine_track_entry inValue); -SPINE_C_API spine_track_entry *spine_array_track_entry_buffer(spine_array_track_entry array); +SPINE_C_API /*@null*/ spine_track_entry *spine_array_track_entry_buffer(spine_array_track_entry array); SPINE_C_API spine_array_update spine_array_update_create(void); @@ -812,23 +827,23 @@ SPINE_C_API size_t spine_array_update_get_capacity(spine_array_update array); SPINE_C_API size_t spine_array_update_size(spine_array_update array); -SPINE_C_API spine_array_update spine_array_update_set_size(spine_array_update array, size_t newSize, spine_update defaultValue); +SPINE_C_API /*@null*/ spine_array_update spine_array_update_set_size(spine_array_update array, size_t newSize, /*@null*/ spine_update defaultValue); SPINE_C_API void spine_array_update_ensure_capacity(spine_array_update array, size_t newCapacity); -SPINE_C_API void spine_array_update_add(spine_array_update array, spine_update inValue); +SPINE_C_API void spine_array_update_add(spine_array_update array, /*@null*/ spine_update inValue); -SPINE_C_API void spine_array_update_add_all(spine_array_update array, spine_array_update inValue); +SPINE_C_API void spine_array_update_add_all(spine_array_update array, /*@null*/ spine_array_update inValue); -SPINE_C_API void spine_array_update_clear_and_add_all(spine_array_update array, spine_array_update inValue); +SPINE_C_API void spine_array_update_clear_and_add_all(spine_array_update array, /*@null*/ spine_array_update inValue); SPINE_C_API void spine_array_update_remove_at(spine_array_update array, size_t inIndex); -SPINE_C_API bool spine_array_update_contains(spine_array_update array, spine_update inValue); +SPINE_C_API bool spine_array_update_contains(spine_array_update array, /*@null*/ spine_update inValue); -SPINE_C_API int spine_array_update_index_of(spine_array_update array, spine_update inValue); +SPINE_C_API int spine_array_update_index_of(spine_array_update array, /*@null*/ spine_update inValue); -SPINE_C_API spine_update *spine_array_update_buffer(spine_array_update array); +SPINE_C_API /*@null*/ spine_update *spine_array_update_buffer(spine_array_update array); #ifdef __cplusplus } diff --git a/spine-c/src/generated/atlas.cpp b/spine-c/src/generated/atlas.cpp index f8dbcbe70..d36f2c827 100644 --- a/spine-c/src/generated/atlas.cpp +++ b/spine-c/src/generated/atlas.cpp @@ -12,17 +12,17 @@ void spine_atlas_flip_v(spine_atlas self) { _self->flipV(); } -spine_atlas_region spine_atlas_find_region(spine_atlas self, const char *name) { +/*@null*/ spine_atlas_region spine_atlas_find_region(spine_atlas self, const char *name) { Atlas *_self = (Atlas *) self; return (spine_atlas_region) _self->findRegion(String(name)); } -spine_array_atlas_page spine_atlas_get_pages(spine_atlas self) { +/*@null*/ spine_array_atlas_page spine_atlas_get_pages(spine_atlas self) { Atlas *_self = (Atlas *) self; return (spine_array_atlas_page) &_self->getPages(); } -spine_array_atlas_region spine_atlas_get_regions(spine_atlas self) { +/*@null*/ spine_array_atlas_region spine_atlas_get_regions(spine_atlas self) { Atlas *_self = (Atlas *) self; return (spine_array_atlas_region) &_self->getRegions(); } diff --git a/spine-c/src/generated/atlas.h b/spine-c/src/generated/atlas.h index 8ae5d231f..a2e4f747f 100644 --- a/spine-c/src/generated/atlas.h +++ b/spine-c/src/generated/atlas.h @@ -12,9 +12,9 @@ extern "C" { SPINE_C_API void spine_atlas_dispose(spine_atlas self); SPINE_C_API void spine_atlas_flip_v(spine_atlas self); -SPINE_C_API spine_atlas_region spine_atlas_find_region(spine_atlas self, const char *name); -SPINE_C_API spine_array_atlas_page spine_atlas_get_pages(spine_atlas self); -SPINE_C_API spine_array_atlas_region spine_atlas_get_regions(spine_atlas self); +SPINE_C_API /*@null*/ spine_atlas_region spine_atlas_find_region(spine_atlas self, const char *name); +SPINE_C_API /*@null*/ spine_array_atlas_page spine_atlas_get_pages(spine_atlas self); +SPINE_C_API /*@null*/ spine_array_atlas_region spine_atlas_get_regions(spine_atlas self); #ifdef __cplusplus } diff --git a/spine-c/src/generated/atlas_attachment_loader.cpp b/spine-c/src/generated/atlas_attachment_loader.cpp index 2f74ccbe8..544302198 100644 --- a/spine-c/src/generated/atlas_attachment_loader.cpp +++ b/spine-c/src/generated/atlas_attachment_loader.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_atlas_attachment_loader spine_atlas_attachment_loader_create(spine_atlas atlas) { +spine_atlas_attachment_loader spine_atlas_attachment_loader_create(/*@null*/ spine_atlas atlas) { return (spine_atlas_attachment_loader) new (__FILE__, __LINE__) AtlasAttachmentLoader((Atlas *) atlas); } @@ -11,41 +11,45 @@ void spine_atlas_attachment_loader_dispose(spine_atlas_attachment_loader self) { delete (AtlasAttachmentLoader *) self; } -spine_region_attachment spine_atlas_attachment_loader_new_region_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char *name, - const char *path, spine_sequence sequence) { +/*@null*/ spine_region_attachment spine_atlas_attachment_loader_new_region_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name, const char *path, + /*@null*/ spine_sequence sequence) { AtlasAttachmentLoader *_self = (AtlasAttachmentLoader *) self; return (spine_region_attachment) _self->newRegionAttachment(*((Skin *) skin), String(name), String(path), (Sequence *) sequence); } -spine_mesh_attachment spine_atlas_attachment_loader_new_mesh_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char *name, - const char *path, spine_sequence sequence) { +/*@null*/ spine_mesh_attachment spine_atlas_attachment_loader_new_mesh_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name, const char *path, + /*@null*/ spine_sequence sequence) { AtlasAttachmentLoader *_self = (AtlasAttachmentLoader *) self; return (spine_mesh_attachment) _self->newMeshAttachment(*((Skin *) skin), String(name), String(path), (Sequence *) sequence); } -spine_bounding_box_attachment spine_atlas_attachment_loader_new_bounding_box_attachment(spine_atlas_attachment_loader self, spine_skin skin, - const char *name) { +/*@null*/ spine_bounding_box_attachment spine_atlas_attachment_loader_new_bounding_box_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name) { AtlasAttachmentLoader *_self = (AtlasAttachmentLoader *) self; return (spine_bounding_box_attachment) _self->newBoundingBoxAttachment(*((Skin *) skin), String(name)); } -spine_path_attachment spine_atlas_attachment_loader_new_path_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char *name) { +/*@null*/ spine_path_attachment spine_atlas_attachment_loader_new_path_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name) { AtlasAttachmentLoader *_self = (AtlasAttachmentLoader *) self; return (spine_path_attachment) _self->newPathAttachment(*((Skin *) skin), String(name)); } -spine_point_attachment spine_atlas_attachment_loader_new_point_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char *name) { +/*@null*/ spine_point_attachment spine_atlas_attachment_loader_new_point_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name) { AtlasAttachmentLoader *_self = (AtlasAttachmentLoader *) self; return (spine_point_attachment) _self->newPointAttachment(*((Skin *) skin), String(name)); } -spine_clipping_attachment spine_atlas_attachment_loader_new_clipping_attachment(spine_atlas_attachment_loader self, spine_skin skin, - const char *name) { +/*@null*/ spine_clipping_attachment spine_atlas_attachment_loader_new_clipping_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name) { AtlasAttachmentLoader *_self = (AtlasAttachmentLoader *) self; return (spine_clipping_attachment) _self->newClippingAttachment(*((Skin *) skin), String(name)); } -spine_atlas_region spine_atlas_attachment_loader_find_region(spine_atlas_attachment_loader self, const char *name) { +/*@null*/ spine_atlas_region spine_atlas_attachment_loader_find_region(spine_atlas_attachment_loader self, const char *name) { AtlasAttachmentLoader *_self = (AtlasAttachmentLoader *) self; return (spine_atlas_region) _self->findRegion(String(name)); } diff --git a/spine-c/src/generated/atlas_attachment_loader.h b/spine-c/src/generated/atlas_attachment_loader.h index a68c4f353..089156111 100644 --- a/spine-c/src/generated/atlas_attachment_loader.h +++ b/spine-c/src/generated/atlas_attachment_loader.h @@ -9,23 +9,25 @@ extern "C" { #endif -SPINE_C_API spine_atlas_attachment_loader spine_atlas_attachment_loader_create(spine_atlas atlas); +SPINE_C_API spine_atlas_attachment_loader spine_atlas_attachment_loader_create(/*@null*/ spine_atlas atlas); SPINE_C_API void spine_atlas_attachment_loader_dispose(spine_atlas_attachment_loader self); -SPINE_C_API spine_region_attachment spine_atlas_attachment_loader_new_region_attachment(spine_atlas_attachment_loader self, spine_skin skin, - const char *name, const char *path, spine_sequence sequence); -SPINE_C_API spine_mesh_attachment spine_atlas_attachment_loader_new_mesh_attachment(spine_atlas_attachment_loader self, spine_skin skin, - const char *name, const char *path, spine_sequence sequence); -SPINE_C_API spine_bounding_box_attachment spine_atlas_attachment_loader_new_bounding_box_attachment(spine_atlas_attachment_loader self, - spine_skin skin, const char *name); -SPINE_C_API spine_path_attachment spine_atlas_attachment_loader_new_path_attachment(spine_atlas_attachment_loader self, spine_skin skin, - const char *name); -SPINE_C_API spine_point_attachment spine_atlas_attachment_loader_new_point_attachment(spine_atlas_attachment_loader self, spine_skin skin, - const char *name); -SPINE_C_API spine_clipping_attachment spine_atlas_attachment_loader_new_clipping_attachment(spine_atlas_attachment_loader self, spine_skin skin, - const char *name); -SPINE_C_API spine_atlas_region spine_atlas_attachment_loader_find_region(spine_atlas_attachment_loader self, const char *name); +SPINE_C_API /*@null*/ spine_region_attachment spine_atlas_attachment_loader_new_region_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name, const char *path, + /*@null*/ spine_sequence sequence); +SPINE_C_API /*@null*/ spine_mesh_attachment spine_atlas_attachment_loader_new_mesh_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name, const char *path, + /*@null*/ spine_sequence sequence); +SPINE_C_API /*@null*/ spine_bounding_box_attachment spine_atlas_attachment_loader_new_bounding_box_attachment(spine_atlas_attachment_loader self, + spine_skin skin, const char *name); +SPINE_C_API /*@null*/ spine_path_attachment spine_atlas_attachment_loader_new_path_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name); +SPINE_C_API /*@null*/ spine_point_attachment spine_atlas_attachment_loader_new_point_attachment(spine_atlas_attachment_loader self, spine_skin skin, + const char *name); +SPINE_C_API /*@null*/ spine_clipping_attachment spine_atlas_attachment_loader_new_clipping_attachment(spine_atlas_attachment_loader self, + spine_skin skin, const char *name); +SPINE_C_API /*@null*/ spine_atlas_region spine_atlas_attachment_loader_find_region(spine_atlas_attachment_loader self, const char *name); #ifdef __cplusplus } diff --git a/spine-c/src/generated/atlas_page.cpp b/spine-c/src/generated/atlas_page.cpp index 966b70b48..8af0353ec 100644 --- a/spine-c/src/generated/atlas_page.cpp +++ b/spine-c/src/generated/atlas_page.cpp @@ -121,12 +121,12 @@ void spine_atlas_page_set_index(spine_atlas_page self, int value) { _self->index = value; } -void *spine_atlas_page_get_texture(spine_atlas_page self) { +/*@null*/ void *spine_atlas_page_get_texture(spine_atlas_page self) { AtlasPage *_self = (AtlasPage *) self; return _self->texture; } -void spine_atlas_page_set_texture(spine_atlas_page self, void *value) { +void spine_atlas_page_set_texture(spine_atlas_page self, /*@null*/ void *value) { AtlasPage *_self = (AtlasPage *) self; _self->texture = (void *) value; } diff --git a/spine-c/src/generated/atlas_page.h b/spine-c/src/generated/atlas_page.h index 85be02b01..7d52770c6 100644 --- a/spine-c/src/generated/atlas_page.h +++ b/spine-c/src/generated/atlas_page.h @@ -35,8 +35,8 @@ SPINE_C_API bool spine_atlas_page_get_pma(spine_atlas_page self); SPINE_C_API void spine_atlas_page_set_pma(spine_atlas_page self, bool value); SPINE_C_API int spine_atlas_page_get_index(spine_atlas_page self); SPINE_C_API void spine_atlas_page_set_index(spine_atlas_page self, int value); -SPINE_C_API void *spine_atlas_page_get_texture(spine_atlas_page self); -SPINE_C_API void spine_atlas_page_set_texture(spine_atlas_page self, void *value); +SPINE_C_API /*@null*/ void *spine_atlas_page_get_texture(spine_atlas_page self); +SPINE_C_API void spine_atlas_page_set_texture(spine_atlas_page self, /*@null*/ void *value); #ifdef __cplusplus } diff --git a/spine-c/src/generated/atlas_region.cpp b/spine-c/src/generated/atlas_region.cpp index a8d015376..4464819f8 100644 --- a/spine-c/src/generated/atlas_region.cpp +++ b/spine-c/src/generated/atlas_region.cpp @@ -16,7 +16,7 @@ spine_rtti spine_atlas_region_get_rtti(spine_atlas_region self) { return (spine_rtti) &_self->getRTTI(); } -spine_atlas_page spine_atlas_region_get_page(spine_atlas_region self) { +/*@null*/ spine_atlas_page spine_atlas_region_get_page(spine_atlas_region self) { AtlasRegion *_self = (AtlasRegion *) self; return (spine_atlas_page) _self->getPage(); } @@ -96,7 +96,7 @@ spine_array_float spine_atlas_region_get_values(spine_atlas_region self) { return (spine_array_float) &_self->getValues(); } -void spine_atlas_region_set_page(spine_atlas_region self, spine_atlas_page value) { +void spine_atlas_region_set_page(spine_atlas_region self, /*@null*/ spine_atlas_page value) { AtlasRegion *_self = (AtlasRegion *) self; _self->setPage((AtlasPage *) value); } diff --git a/spine-c/src/generated/atlas_region.h b/spine-c/src/generated/atlas_region.h index 5459fa1b0..b3e934024 100644 --- a/spine-c/src/generated/atlas_region.h +++ b/spine-c/src/generated/atlas_region.h @@ -14,7 +14,7 @@ SPINE_C_API spine_atlas_region spine_atlas_region_create(void); SPINE_C_API void spine_atlas_region_dispose(spine_atlas_region self); SPINE_C_API spine_rtti spine_atlas_region_get_rtti(spine_atlas_region self); -SPINE_C_API spine_atlas_page spine_atlas_region_get_page(spine_atlas_region self); +SPINE_C_API /*@null*/ spine_atlas_page spine_atlas_region_get_page(spine_atlas_region self); SPINE_C_API const char *spine_atlas_region_get_name(spine_atlas_region self); SPINE_C_API int spine_atlas_region_get_index(spine_atlas_region self); SPINE_C_API int spine_atlas_region_get_x(spine_atlas_region self); @@ -30,7 +30,7 @@ SPINE_C_API int spine_atlas_region_get_degrees(spine_atlas_region self); SPINE_C_API spine_array_int spine_atlas_region_get_splits(spine_atlas_region self); SPINE_C_API spine_array_int spine_atlas_region_get_pads(spine_atlas_region self); SPINE_C_API spine_array_float spine_atlas_region_get_values(spine_atlas_region self); -SPINE_C_API void spine_atlas_region_set_page(spine_atlas_region self, spine_atlas_page value); +SPINE_C_API void spine_atlas_region_set_page(spine_atlas_region self, /*@null*/ spine_atlas_page value); SPINE_C_API void spine_atlas_region_set_name(spine_atlas_region self, const char *value); SPINE_C_API void spine_atlas_region_set_index(spine_atlas_region self, int value); SPINE_C_API void spine_atlas_region_set_x(spine_atlas_region self, int value); diff --git a/spine-c/src/generated/attachment_loader.cpp b/spine-c/src/generated/attachment_loader.cpp index 2a475b2cb..29bbfefd6 100644 --- a/spine-c/src/generated/attachment_loader.cpp +++ b/spine-c/src/generated/attachment_loader.cpp @@ -7,34 +7,35 @@ void spine_attachment_loader_dispose(spine_attachment_loader self) { delete (AttachmentLoader *) self; } -spine_region_attachment spine_attachment_loader_new_region_attachment(spine_attachment_loader self, spine_skin skin, const char *name, - const char *path, spine_sequence sequence) { +/*@null*/ spine_region_attachment spine_attachment_loader_new_region_attachment(spine_attachment_loader self, spine_skin skin, const char *name, + const char *path, /*@null*/ spine_sequence sequence) { AttachmentLoader *_self = (AttachmentLoader *) self; return (spine_region_attachment) _self->newRegionAttachment(*((Skin *) skin), String(name), String(path), (Sequence *) sequence); } -spine_mesh_attachment spine_attachment_loader_new_mesh_attachment(spine_attachment_loader self, spine_skin skin, const char *name, const char *path, - spine_sequence sequence) { +/*@null*/ spine_mesh_attachment spine_attachment_loader_new_mesh_attachment(spine_attachment_loader self, spine_skin skin, const char *name, + const char *path, /*@null*/ spine_sequence sequence) { AttachmentLoader *_self = (AttachmentLoader *) self; return (spine_mesh_attachment) _self->newMeshAttachment(*((Skin *) skin), String(name), String(path), (Sequence *) sequence); } -spine_bounding_box_attachment spine_attachment_loader_new_bounding_box_attachment(spine_attachment_loader self, spine_skin skin, const char *name) { +/*@null*/ spine_bounding_box_attachment spine_attachment_loader_new_bounding_box_attachment(spine_attachment_loader self, spine_skin skin, + const char *name) { AttachmentLoader *_self = (AttachmentLoader *) self; return (spine_bounding_box_attachment) _self->newBoundingBoxAttachment(*((Skin *) skin), String(name)); } -spine_path_attachment spine_attachment_loader_new_path_attachment(spine_attachment_loader self, spine_skin skin, const char *name) { +/*@null*/ spine_path_attachment spine_attachment_loader_new_path_attachment(spine_attachment_loader self, spine_skin skin, const char *name) { AttachmentLoader *_self = (AttachmentLoader *) self; return (spine_path_attachment) _self->newPathAttachment(*((Skin *) skin), String(name)); } -spine_point_attachment spine_attachment_loader_new_point_attachment(spine_attachment_loader self, spine_skin skin, const char *name) { +/*@null*/ spine_point_attachment spine_attachment_loader_new_point_attachment(spine_attachment_loader self, spine_skin skin, const char *name) { AttachmentLoader *_self = (AttachmentLoader *) self; return (spine_point_attachment) _self->newPointAttachment(*((Skin *) skin), String(name)); } -spine_clipping_attachment spine_attachment_loader_new_clipping_attachment(spine_attachment_loader self, spine_skin skin, const char *name) { +/*@null*/ spine_clipping_attachment spine_attachment_loader_new_clipping_attachment(spine_attachment_loader self, spine_skin skin, const char *name) { AttachmentLoader *_self = (AttachmentLoader *) self; return (spine_clipping_attachment) _self->newClippingAttachment(*((Skin *) skin), String(name)); } diff --git a/spine-c/src/generated/attachment_loader.h b/spine-c/src/generated/attachment_loader.h index bc1424850..7f10cc634 100644 --- a/spine-c/src/generated/attachment_loader.h +++ b/spine-c/src/generated/attachment_loader.h @@ -11,16 +11,20 @@ extern "C" { SPINE_C_API void spine_attachment_loader_dispose(spine_attachment_loader self); -SPINE_C_API spine_region_attachment spine_attachment_loader_new_region_attachment(spine_attachment_loader self, spine_skin skin, const char *name, - const char *path, spine_sequence sequence); -SPINE_C_API spine_mesh_attachment spine_attachment_loader_new_mesh_attachment(spine_attachment_loader self, spine_skin skin, const char *name, - const char *path, spine_sequence sequence); -SPINE_C_API spine_bounding_box_attachment spine_attachment_loader_new_bounding_box_attachment(spine_attachment_loader self, spine_skin skin, - const char *name); -SPINE_C_API spine_path_attachment spine_attachment_loader_new_path_attachment(spine_attachment_loader self, spine_skin skin, const char *name); -SPINE_C_API spine_point_attachment spine_attachment_loader_new_point_attachment(spine_attachment_loader self, spine_skin skin, const char *name); -SPINE_C_API spine_clipping_attachment spine_attachment_loader_new_clipping_attachment(spine_attachment_loader self, spine_skin skin, - const char *name); +SPINE_C_API /*@null*/ spine_region_attachment spine_attachment_loader_new_region_attachment(spine_attachment_loader self, spine_skin skin, + const char *name, const char *path, + /*@null*/ spine_sequence sequence); +SPINE_C_API /*@null*/ spine_mesh_attachment spine_attachment_loader_new_mesh_attachment(spine_attachment_loader self, spine_skin skin, + const char *name, const char *path, + /*@null*/ spine_sequence sequence); +SPINE_C_API /*@null*/ spine_bounding_box_attachment spine_attachment_loader_new_bounding_box_attachment(spine_attachment_loader self, spine_skin skin, + const char *name); +SPINE_C_API /*@null*/ spine_path_attachment spine_attachment_loader_new_path_attachment(spine_attachment_loader self, spine_skin skin, + const char *name); +SPINE_C_API /*@null*/ spine_point_attachment spine_attachment_loader_new_point_attachment(spine_attachment_loader self, spine_skin skin, + const char *name); +SPINE_C_API /*@null*/ spine_clipping_attachment spine_attachment_loader_new_clipping_attachment(spine_attachment_loader self, spine_skin skin, + const char *name); #ifdef __cplusplus } diff --git a/spine-c/src/generated/attachment_timeline.cpp b/spine-c/src/generated/attachment_timeline.cpp index db5f2b1cb..5e35d3515 100644 --- a/spine-c/src/generated/attachment_timeline.cpp +++ b/spine-c/src/generated/attachment_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_attachment_timeline_get_rtti(spine_attachment_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_attachment_timeline_apply(spine_attachment_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_attachment_timeline_apply(spine_attachment_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { AttachmentTimeline *_self = (AttachmentTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/attachment_timeline.h b/spine-c/src/generated/attachment_timeline.h index d9e5dfcca..4f6a43319 100644 --- a/spine-c/src/generated/attachment_timeline.h +++ b/spine-c/src/generated/attachment_timeline.h @@ -15,8 +15,8 @@ SPINE_C_API void spine_attachment_timeline_dispose(spine_attachment_timeline sel SPINE_C_API spine_rtti spine_attachment_timeline_get_rtti(spine_attachment_timeline self); SPINE_C_API void spine_attachment_timeline_apply(spine_attachment_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API void spine_attachment_timeline_set_frame(spine_attachment_timeline self, int frame, float time, const char *attachmentName); SPINE_C_API int spine_attachment_timeline_get_slot_index(spine_attachment_timeline self); SPINE_C_API void spine_attachment_timeline_set_slot_index(spine_attachment_timeline self, int inValue); diff --git a/spine-c/src/generated/bone.cpp b/spine-c/src/generated/bone.cpp index 6792b27a0..a017b3769 100644 --- a/spine-c/src/generated/bone.cpp +++ b/spine-c/src/generated/bone.cpp @@ -3,11 +3,11 @@ using namespace spine; -spine_bone spine_bone_create(spine_bone_data data, spine_bone parent) { +spine_bone spine_bone_create(spine_bone_data data, /*@null*/ spine_bone parent) { return (spine_bone) new (__FILE__, __LINE__) Bone(*((BoneData *) data), (Bone *) parent); } -spine_bone spine_bone_create2(spine_bone bone, spine_bone parent) { +spine_bone spine_bone_create2(spine_bone bone, /*@null*/ spine_bone parent) { return (spine_bone) new (__FILE__, __LINE__) Bone(*((Bone *) bone), (Bone *) parent); } @@ -20,12 +20,12 @@ spine_rtti spine_bone_get_rtti(spine_bone self) { return (spine_rtti) &_self->getRTTI(); } -spine_bone spine_bone_get_parent(spine_bone self) { +/*@null*/ spine_bone spine_bone_get_parent(spine_bone self) { Bone *_self = (Bone *) self; return (spine_bone) _self->getParent(); } -spine_array_bone spine_bone_get_children(spine_bone self) { +/*@null*/ spine_array_bone spine_bone_get_children(spine_bone self) { Bone *_self = (Bone *) self; return (spine_array_bone) &_self->getChildren(); } diff --git a/spine-c/src/generated/bone.h b/spine-c/src/generated/bone.h index 344e20be5..8c2f8103c 100644 --- a/spine-c/src/generated/bone.h +++ b/spine-c/src/generated/bone.h @@ -9,14 +9,14 @@ extern "C" { #endif -SPINE_C_API spine_bone spine_bone_create(spine_bone_data data, spine_bone parent); -SPINE_C_API spine_bone spine_bone_create2(spine_bone bone, spine_bone parent); +SPINE_C_API spine_bone spine_bone_create(spine_bone_data data, /*@null*/ spine_bone parent); +SPINE_C_API spine_bone spine_bone_create2(spine_bone bone, /*@null*/ spine_bone parent); SPINE_C_API void spine_bone_dispose(spine_bone self); SPINE_C_API spine_rtti spine_bone_get_rtti(spine_bone self); -SPINE_C_API spine_bone spine_bone_get_parent(spine_bone self); -SPINE_C_API spine_array_bone spine_bone_get_children(spine_bone self); +SPINE_C_API /*@null*/ spine_bone spine_bone_get_parent(spine_bone self); +SPINE_C_API /*@null*/ spine_array_bone spine_bone_get_children(spine_bone self); SPINE_C_API bool spine_bone_is_y_down(void); SPINE_C_API void spine_bone_set_y_down(bool value); SPINE_C_API void spine_bone_update(spine_bone self, spine_skeleton skeleton, spine_physics physics); diff --git a/spine-c/src/generated/bone_data.cpp b/spine-c/src/generated/bone_data.cpp index 849ea0663..6435fca2e 100644 --- a/spine-c/src/generated/bone_data.cpp +++ b/spine-c/src/generated/bone_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_bone_data spine_bone_data_create(int index, const char *name, spine_bone_data parent) { +spine_bone_data spine_bone_data_create(int index, const char *name, /*@null*/ spine_bone_data parent) { return (spine_bone_data) new (__FILE__, __LINE__) BoneData(index, String(name), (BoneData *) parent); } @@ -16,7 +16,7 @@ int spine_bone_data_get_index(spine_bone_data self) { return _self->getIndex(); } -spine_bone_data spine_bone_data_get_parent(spine_bone_data self) { +/*@null*/ spine_bone_data spine_bone_data_get_parent(spine_bone_data self) { BoneData *_self = (BoneData *) self; return (spine_bone_data) _self->getParent(); } diff --git a/spine-c/src/generated/bone_data.h b/spine-c/src/generated/bone_data.h index 0ccf828ae..33c4a5886 100644 --- a/spine-c/src/generated/bone_data.h +++ b/spine-c/src/generated/bone_data.h @@ -9,12 +9,12 @@ extern "C" { #endif -SPINE_C_API spine_bone_data spine_bone_data_create(int index, const char *name, spine_bone_data parent); +SPINE_C_API spine_bone_data spine_bone_data_create(int index, const char *name, /*@null*/ spine_bone_data parent); SPINE_C_API void spine_bone_data_dispose(spine_bone_data self); SPINE_C_API int spine_bone_data_get_index(spine_bone_data self); -SPINE_C_API spine_bone_data spine_bone_data_get_parent(spine_bone_data self); +SPINE_C_API /*@null*/ spine_bone_data spine_bone_data_get_parent(spine_bone_data self); SPINE_C_API float spine_bone_data_get_length(spine_bone_data self); SPINE_C_API void spine_bone_data_set_length(spine_bone_data self, float inValue); SPINE_C_API spine_color spine_bone_data_get_color(spine_bone_data self); diff --git a/spine-c/src/generated/bone_timeline1.cpp b/spine-c/src/generated/bone_timeline1.cpp index e4a98395c..8e93e6e6a 100644 --- a/spine-c/src/generated/bone_timeline1.cpp +++ b/spine-c/src/generated/bone_timeline1.cpp @@ -12,7 +12,7 @@ spine_rtti spine_bone_timeline1_get_rtti(spine_bone_timeline1 self) { return (spine_rtti) &_self->getRTTI(); } -void spine_bone_timeline1_apply(spine_bone_timeline1 self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_bone_timeline1_apply(spine_bone_timeline1 self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { BoneTimeline1 *_self = (BoneTimeline1 *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/bone_timeline1.h b/spine-c/src/generated/bone_timeline1.h index 948eb0a3b..0ad30e4fb 100644 --- a/spine-c/src/generated/bone_timeline1.h +++ b/spine-c/src/generated/bone_timeline1.h @@ -12,8 +12,9 @@ extern "C" { SPINE_C_API void spine_bone_timeline1_dispose(spine_bone_timeline1 self); SPINE_C_API spine_rtti spine_bone_timeline1_get_rtti(spine_bone_timeline1 self); -SPINE_C_API void spine_bone_timeline1_apply(spine_bone_timeline1 self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_bone_timeline1_apply(spine_bone_timeline1 self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API int spine_bone_timeline1_get_bone_index(spine_bone_timeline1 self); SPINE_C_API void spine_bone_timeline1_set_bone_index(spine_bone_timeline1 self, int inValue); SPINE_C_API void spine_bone_timeline1_set_frame(spine_bone_timeline1 self, size_t frame, float time, float value); diff --git a/spine-c/src/generated/bone_timeline2.cpp b/spine-c/src/generated/bone_timeline2.cpp index 4271781ed..4e9126a68 100644 --- a/spine-c/src/generated/bone_timeline2.cpp +++ b/spine-c/src/generated/bone_timeline2.cpp @@ -12,7 +12,7 @@ spine_rtti spine_bone_timeline2_get_rtti(spine_bone_timeline2 self) { return (spine_rtti) &_self->getRTTI(); } -void spine_bone_timeline2_apply(spine_bone_timeline2 self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_bone_timeline2_apply(spine_bone_timeline2 self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { BoneTimeline2 *_self = (BoneTimeline2 *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/bone_timeline2.h b/spine-c/src/generated/bone_timeline2.h index a1686e666..18d48b6c1 100644 --- a/spine-c/src/generated/bone_timeline2.h +++ b/spine-c/src/generated/bone_timeline2.h @@ -12,8 +12,9 @@ extern "C" { SPINE_C_API void spine_bone_timeline2_dispose(spine_bone_timeline2 self); SPINE_C_API spine_rtti spine_bone_timeline2_get_rtti(spine_bone_timeline2 self); -SPINE_C_API void spine_bone_timeline2_apply(spine_bone_timeline2 self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_bone_timeline2_apply(spine_bone_timeline2 self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API int spine_bone_timeline2_get_bone_index(spine_bone_timeline2 self); SPINE_C_API void spine_bone_timeline2_set_bone_index(spine_bone_timeline2 self, int inValue); SPINE_C_API void spine_bone_timeline2_set_frame(spine_bone_timeline2 self, size_t frame, float time, float value1, float value2); diff --git a/spine-c/src/generated/bounding_box_attachment.cpp b/spine-c/src/generated/bounding_box_attachment.cpp index 0286004f1..6eaa8a6a3 100644 --- a/spine-c/src/generated/bounding_box_attachment.cpp +++ b/spine-c/src/generated/bounding_box_attachment.cpp @@ -27,7 +27,8 @@ spine_attachment spine_bounding_box_attachment_copy(spine_bounding_box_attachmen } void spine_bounding_box_attachment_compute_world_vertices_1(spine_bounding_box_attachment self, spine_skeleton skeleton, spine_slot slot, - size_t start, size_t count, float *worldVertices, size_t offset, size_t stride) { + size_t start, size_t count, /*@null*/ float *worldVertices, size_t offset, + size_t stride) { VertexAttachment *_self = (VertexAttachment *) (BoundingBoxAttachment *) self; _self->computeWorldVertices(*((Skeleton *) skeleton), *((Slot *) slot), start, count, worldVertices, offset, stride); } @@ -74,12 +75,12 @@ void spine_bounding_box_attachment_set_world_vertices_length(spine_bounding_box_ _self->setWorldVerticesLength(inValue); } -spine_attachment spine_bounding_box_attachment_get_timeline_attachment(spine_bounding_box_attachment self) { +/*@null*/ spine_attachment spine_bounding_box_attachment_get_timeline_attachment(spine_bounding_box_attachment self) { VertexAttachment *_self = (VertexAttachment *) (BoundingBoxAttachment *) self; return (spine_attachment) _self->getTimelineAttachment(); } -void spine_bounding_box_attachment_set_timeline_attachment(spine_bounding_box_attachment self, spine_attachment attachment) { +void spine_bounding_box_attachment_set_timeline_attachment(spine_bounding_box_attachment self, /*@null*/ spine_attachment attachment) { VertexAttachment *_self = (VertexAttachment *) (BoundingBoxAttachment *) self; _self->setTimelineAttachment((Attachment *) attachment); } diff --git a/spine-c/src/generated/bounding_box_attachment.h b/spine-c/src/generated/bounding_box_attachment.h index 522956610..3c4a8b7e1 100644 --- a/spine-c/src/generated/bounding_box_attachment.h +++ b/spine-c/src/generated/bounding_box_attachment.h @@ -17,7 +17,7 @@ SPINE_C_API spine_rtti spine_bounding_box_attachment_get_rtti(spine_bounding_box SPINE_C_API spine_color spine_bounding_box_attachment_get_color(spine_bounding_box_attachment self); SPINE_C_API spine_attachment spine_bounding_box_attachment_copy(spine_bounding_box_attachment self); SPINE_C_API void spine_bounding_box_attachment_compute_world_vertices_1(spine_bounding_box_attachment self, spine_skeleton skeleton, spine_slot slot, - size_t start, size_t count, float *worldVertices, size_t offset, + size_t start, size_t count, /*@null*/ float *worldVertices, size_t offset, size_t stride); SPINE_C_API void spine_bounding_box_attachment_compute_world_vertices_2(spine_bounding_box_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, size_t count, spine_array_float worldVertices, size_t offset, @@ -29,8 +29,8 @@ SPINE_C_API spine_array_float spine_bounding_box_attachment_get_vertices(spine_b SPINE_C_API void spine_bounding_box_attachment_set_vertices(spine_bounding_box_attachment self, spine_array_float vertices); SPINE_C_API size_t spine_bounding_box_attachment_get_world_vertices_length(spine_bounding_box_attachment self); SPINE_C_API void spine_bounding_box_attachment_set_world_vertices_length(spine_bounding_box_attachment self, size_t inValue); -SPINE_C_API spine_attachment spine_bounding_box_attachment_get_timeline_attachment(spine_bounding_box_attachment self); -SPINE_C_API void spine_bounding_box_attachment_set_timeline_attachment(spine_bounding_box_attachment self, spine_attachment attachment); +SPINE_C_API /*@null*/ spine_attachment spine_bounding_box_attachment_get_timeline_attachment(spine_bounding_box_attachment self); +SPINE_C_API void spine_bounding_box_attachment_set_timeline_attachment(spine_bounding_box_attachment self, /*@null*/ spine_attachment attachment); SPINE_C_API void spine_bounding_box_attachment_copy_to(spine_bounding_box_attachment self, spine_vertex_attachment other); SPINE_C_API const char *spine_bounding_box_attachment_get_name(spine_bounding_box_attachment self); SPINE_C_API int spine_bounding_box_attachment_get_ref_count(spine_bounding_box_attachment self); diff --git a/spine-c/src/generated/clipping_attachment.cpp b/spine-c/src/generated/clipping_attachment.cpp index fbc4e34a7..0c0148614 100644 --- a/spine-c/src/generated/clipping_attachment.cpp +++ b/spine-c/src/generated/clipping_attachment.cpp @@ -16,12 +16,12 @@ spine_rtti spine_clipping_attachment_get_rtti(spine_clipping_attachment self) { return (spine_rtti) &_self->getRTTI(); } -spine_slot_data spine_clipping_attachment_get_end_slot(spine_clipping_attachment self) { +/*@null*/ spine_slot_data spine_clipping_attachment_get_end_slot(spine_clipping_attachment self) { ClippingAttachment *_self = (ClippingAttachment *) self; return (spine_slot_data) _self->getEndSlot(); } -void spine_clipping_attachment_set_end_slot(spine_clipping_attachment self, spine_slot_data inValue) { +void spine_clipping_attachment_set_end_slot(spine_clipping_attachment self, /*@null*/ spine_slot_data inValue) { ClippingAttachment *_self = (ClippingAttachment *) self; _self->setEndSlot((SlotData *) inValue); } @@ -37,7 +37,7 @@ spine_attachment spine_clipping_attachment_copy(spine_clipping_attachment self) } void spine_clipping_attachment_compute_world_vertices_1(spine_clipping_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, - size_t count, float *worldVertices, size_t offset, size_t stride) { + size_t count, /*@null*/ float *worldVertices, size_t offset, size_t stride) { VertexAttachment *_self = (VertexAttachment *) (ClippingAttachment *) self; _self->computeWorldVertices(*((Skeleton *) skeleton), *((Slot *) slot), start, count, worldVertices, offset, stride); } @@ -83,12 +83,12 @@ void spine_clipping_attachment_set_world_vertices_length(spine_clipping_attachme _self->setWorldVerticesLength(inValue); } -spine_attachment spine_clipping_attachment_get_timeline_attachment(spine_clipping_attachment self) { +/*@null*/ spine_attachment spine_clipping_attachment_get_timeline_attachment(spine_clipping_attachment self) { VertexAttachment *_self = (VertexAttachment *) (ClippingAttachment *) self; return (spine_attachment) _self->getTimelineAttachment(); } -void spine_clipping_attachment_set_timeline_attachment(spine_clipping_attachment self, spine_attachment attachment) { +void spine_clipping_attachment_set_timeline_attachment(spine_clipping_attachment self, /*@null*/ spine_attachment attachment) { VertexAttachment *_self = (VertexAttachment *) (ClippingAttachment *) self; _self->setTimelineAttachment((Attachment *) attachment); } diff --git a/spine-c/src/generated/clipping_attachment.h b/spine-c/src/generated/clipping_attachment.h index 0f1cb4915..a7999f554 100644 --- a/spine-c/src/generated/clipping_attachment.h +++ b/spine-c/src/generated/clipping_attachment.h @@ -14,12 +14,13 @@ SPINE_C_API spine_clipping_attachment spine_clipping_attachment_create(const cha SPINE_C_API void spine_clipping_attachment_dispose(spine_clipping_attachment self); SPINE_C_API spine_rtti spine_clipping_attachment_get_rtti(spine_clipping_attachment self); -SPINE_C_API spine_slot_data spine_clipping_attachment_get_end_slot(spine_clipping_attachment self); -SPINE_C_API void spine_clipping_attachment_set_end_slot(spine_clipping_attachment self, spine_slot_data inValue); +SPINE_C_API /*@null*/ spine_slot_data spine_clipping_attachment_get_end_slot(spine_clipping_attachment self); +SPINE_C_API void spine_clipping_attachment_set_end_slot(spine_clipping_attachment self, /*@null*/ spine_slot_data inValue); SPINE_C_API spine_color spine_clipping_attachment_get_color(spine_clipping_attachment self); SPINE_C_API spine_attachment spine_clipping_attachment_copy(spine_clipping_attachment self); SPINE_C_API void spine_clipping_attachment_compute_world_vertices_1(spine_clipping_attachment self, spine_skeleton skeleton, spine_slot slot, - size_t start, size_t count, float *worldVertices, size_t offset, size_t stride); + size_t start, size_t count, /*@null*/ float *worldVertices, size_t offset, + size_t stride); SPINE_C_API void spine_clipping_attachment_compute_world_vertices_2(spine_clipping_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, size_t count, spine_array_float worldVertices, size_t offset, size_t stride); @@ -30,8 +31,8 @@ SPINE_C_API spine_array_float spine_clipping_attachment_get_vertices(spine_clipp SPINE_C_API void spine_clipping_attachment_set_vertices(spine_clipping_attachment self, spine_array_float vertices); SPINE_C_API size_t spine_clipping_attachment_get_world_vertices_length(spine_clipping_attachment self); SPINE_C_API void spine_clipping_attachment_set_world_vertices_length(spine_clipping_attachment self, size_t inValue); -SPINE_C_API spine_attachment spine_clipping_attachment_get_timeline_attachment(spine_clipping_attachment self); -SPINE_C_API void spine_clipping_attachment_set_timeline_attachment(spine_clipping_attachment self, spine_attachment attachment); +SPINE_C_API /*@null*/ spine_attachment spine_clipping_attachment_get_timeline_attachment(spine_clipping_attachment self); +SPINE_C_API void spine_clipping_attachment_set_timeline_attachment(spine_clipping_attachment self, /*@null*/ spine_attachment attachment); SPINE_C_API void spine_clipping_attachment_copy_to(spine_clipping_attachment self, spine_vertex_attachment other); SPINE_C_API const char *spine_clipping_attachment_get_name(spine_clipping_attachment self); SPINE_C_API int spine_clipping_attachment_get_ref_count(spine_clipping_attachment self); diff --git a/spine-c/src/generated/color.cpp b/spine-c/src/generated/color.cpp index ea1c4a503..def03ed31 100644 --- a/spine-c/src/generated/color.cpp +++ b/spine-c/src/generated/color.cpp @@ -50,7 +50,7 @@ spine_color spine_color_clamp(spine_color self) { return (spine_color) &_self->clamp(); } -float spine_color_parse_hex(const char *value, size_t index) { +float spine_color_parse_hex(/*@null*/ const char *value, size_t index) { return Color::parseHex(value, index); } diff --git a/spine-c/src/generated/color.h b/spine-c/src/generated/color.h index 975052d9e..fe073fcae 100644 --- a/spine-c/src/generated/color.h +++ b/spine-c/src/generated/color.h @@ -21,7 +21,7 @@ SPINE_C_API spine_color spine_color_add_1(spine_color self, float _r, float _g, SPINE_C_API spine_color spine_color_add_2(spine_color self, float _r, float _g, float _b); SPINE_C_API spine_color spine_color_add_3(spine_color self, spine_color other); SPINE_C_API spine_color spine_color_clamp(spine_color self); -SPINE_C_API float spine_color_parse_hex(const char *value, size_t index); +SPINE_C_API float spine_color_parse_hex(/*@null*/ const char *value, size_t index); SPINE_C_API void spine_color_rgba8888_to_color(spine_color color, int value); SPINE_C_API void spine_color_rgb888_to_color(spine_color color, int value); SPINE_C_API float spine_color_get_r(spine_color self); diff --git a/spine-c/src/generated/constraint_timeline1.cpp b/spine-c/src/generated/constraint_timeline1.cpp index 2c287ecd5..04c084e59 100644 --- a/spine-c/src/generated/constraint_timeline1.cpp +++ b/spine-c/src/generated/constraint_timeline1.cpp @@ -82,8 +82,9 @@ spine_array_float spine_constraint_timeline1_get_curves(spine_constraint_timelin return (spine_array_float) &_self->getCurves(); } -void spine_constraint_timeline1_apply(spine_constraint_timeline1 self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_constraint_timeline1_apply(spine_constraint_timeline1 self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { CurveTimeline1 *_self = (CurveTimeline1 *) (ConstraintTimeline1 *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/constraint_timeline1.h b/spine-c/src/generated/constraint_timeline1.h index 2f1d48925..c075f5f55 100644 --- a/spine-c/src/generated/constraint_timeline1.h +++ b/spine-c/src/generated/constraint_timeline1.h @@ -32,8 +32,8 @@ SPINE_C_API float spine_constraint_timeline1_get_bezier_value(spine_constraint_t size_t i); SPINE_C_API spine_array_float spine_constraint_timeline1_get_curves(spine_constraint_timeline1 self); SPINE_C_API void spine_constraint_timeline1_apply(spine_constraint_timeline1 self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API size_t spine_constraint_timeline1_get_frame_entries(spine_constraint_timeline1 self); SPINE_C_API size_t spine_constraint_timeline1_get_frame_count(spine_constraint_timeline1 self); SPINE_C_API spine_array_float spine_constraint_timeline1_get_frames(spine_constraint_timeline1 self); diff --git a/spine-c/src/generated/curve_timeline.cpp b/spine-c/src/generated/curve_timeline.cpp index bbcb0dfe8..f065b576f 100644 --- a/spine-c/src/generated/curve_timeline.cpp +++ b/spine-c/src/generated/curve_timeline.cpp @@ -38,7 +38,7 @@ spine_array_float spine_curve_timeline_get_curves(spine_curve_timeline self) { return (spine_array_float) &_self->getCurves(); } -void spine_curve_timeline_apply(spine_curve_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_curve_timeline_apply(spine_curve_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { Timeline *_self = (Timeline *) (CurveTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/curve_timeline.h b/spine-c/src/generated/curve_timeline.h index a4e293cce..6feefae7a 100644 --- a/spine-c/src/generated/curve_timeline.h +++ b/spine-c/src/generated/curve_timeline.h @@ -18,8 +18,9 @@ SPINE_C_API void spine_curve_timeline_set_bezier(spine_curve_timeline self, size float cx1, float cy1, float cx2, float cy2, float time2, float value2); SPINE_C_API float spine_curve_timeline_get_bezier_value(spine_curve_timeline self, float time, size_t frame, size_t valueOffset, size_t i); SPINE_C_API spine_array_float spine_curve_timeline_get_curves(spine_curve_timeline self); -SPINE_C_API void spine_curve_timeline_apply(spine_curve_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_curve_timeline_apply(spine_curve_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API size_t spine_curve_timeline_get_frame_entries(spine_curve_timeline self); SPINE_C_API size_t spine_curve_timeline_get_frame_count(spine_curve_timeline self); SPINE_C_API spine_array_float spine_curve_timeline_get_frames(spine_curve_timeline self); diff --git a/spine-c/src/generated/curve_timeline1.cpp b/spine-c/src/generated/curve_timeline1.cpp index 38bbd480f..ab6ed290f 100644 --- a/spine-c/src/generated/curve_timeline1.cpp +++ b/spine-c/src/generated/curve_timeline1.cpp @@ -72,7 +72,7 @@ spine_array_float spine_curve_timeline1_get_curves(spine_curve_timeline1 self) { return (spine_array_float) &_self->getCurves(); } -void spine_curve_timeline1_apply(spine_curve_timeline1 self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_curve_timeline1_apply(spine_curve_timeline1 self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { CurveTimeline *_self = (CurveTimeline *) (CurveTimeline1 *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/curve_timeline1.h b/spine-c/src/generated/curve_timeline1.h index fca18c107..78df25370 100644 --- a/spine-c/src/generated/curve_timeline1.h +++ b/spine-c/src/generated/curve_timeline1.h @@ -29,7 +29,7 @@ SPINE_C_API void spine_curve_timeline1_set_bezier(spine_curve_timeline1 self, si SPINE_C_API float spine_curve_timeline1_get_bezier_value(spine_curve_timeline1 self, float time, size_t frame, size_t valueOffset, size_t i); SPINE_C_API spine_array_float spine_curve_timeline1_get_curves(spine_curve_timeline1 self); SPINE_C_API void spine_curve_timeline1_apply(spine_curve_timeline1 self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API size_t spine_curve_timeline1_get_frame_entries(spine_curve_timeline1 self); SPINE_C_API size_t spine_curve_timeline1_get_frame_count(spine_curve_timeline1 self); diff --git a/spine-c/src/generated/deform_timeline.cpp b/spine-c/src/generated/deform_timeline.cpp index 66179e38e..47099764d 100644 --- a/spine-c/src/generated/deform_timeline.cpp +++ b/spine-c/src/generated/deform_timeline.cpp @@ -3,7 +3,8 @@ using namespace spine; -spine_deform_timeline spine_deform_timeline_create(size_t frameCount, size_t bezierCount, int slotIndex, spine_vertex_attachment attachment) { +spine_deform_timeline spine_deform_timeline_create(size_t frameCount, size_t bezierCount, int slotIndex, + /*@null*/ spine_vertex_attachment attachment) { return (spine_deform_timeline) new (__FILE__, __LINE__) DeformTimeline(frameCount, bezierCount, slotIndex, (VertexAttachment *) attachment); } @@ -47,7 +48,7 @@ size_t spine_deform_timeline_get_frame_count(spine_deform_timeline self) { return _self->getFrameCount(); } -void spine_deform_timeline_apply(spine_deform_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_deform_timeline_apply(spine_deform_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { SlotCurveTimeline *_self = (SlotCurveTimeline *) (DeformTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/deform_timeline.h b/spine-c/src/generated/deform_timeline.h index 111f006b1..5e962ff5f 100644 --- a/spine-c/src/generated/deform_timeline.h +++ b/spine-c/src/generated/deform_timeline.h @@ -10,7 +10,7 @@ extern "C" { #endif SPINE_C_API spine_deform_timeline spine_deform_timeline_create(size_t frameCount, size_t bezierCount, int slotIndex, - spine_vertex_attachment attachment); + /*@null*/ spine_vertex_attachment attachment); SPINE_C_API void spine_deform_timeline_dispose(spine_deform_timeline self); @@ -23,7 +23,7 @@ SPINE_C_API void spine_deform_timeline_set_bezier(spine_deform_timeline self, si SPINE_C_API float spine_deform_timeline_get_curve_percent(spine_deform_timeline self, float time, int frame); SPINE_C_API size_t spine_deform_timeline_get_frame_count(spine_deform_timeline self); SPINE_C_API void spine_deform_timeline_apply(spine_deform_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_deform_timeline_get_slot_index(spine_deform_timeline self); SPINE_C_API void spine_deform_timeline_set_slot_index(spine_deform_timeline self, int inValue); diff --git a/spine-c/src/generated/draw_order_timeline.cpp b/spine-c/src/generated/draw_order_timeline.cpp index d9724d9ca..6280ce074 100644 --- a/spine-c/src/generated/draw_order_timeline.cpp +++ b/spine-c/src/generated/draw_order_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_draw_order_timeline_get_rtti(spine_draw_order_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_draw_order_timeline_apply(spine_draw_order_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_draw_order_timeline_apply(spine_draw_order_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { DrawOrderTimeline *_self = (DrawOrderTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); @@ -28,7 +29,7 @@ size_t spine_draw_order_timeline_get_frame_count(spine_draw_order_timeline self) return _self->getFrameCount(); } -void spine_draw_order_timeline_set_frame(spine_draw_order_timeline self, size_t frame, float time, spine_array_int drawOrder) { +void spine_draw_order_timeline_set_frame(spine_draw_order_timeline self, size_t frame, float time, /*@null*/ spine_array_int drawOrder) { DrawOrderTimeline *_self = (DrawOrderTimeline *) self; _self->setFrame(frame, time, (Array *) drawOrder); } diff --git a/spine-c/src/generated/draw_order_timeline.h b/spine-c/src/generated/draw_order_timeline.h index 98b9ba73a..8f8ff6c8a 100644 --- a/spine-c/src/generated/draw_order_timeline.h +++ b/spine-c/src/generated/draw_order_timeline.h @@ -15,10 +15,10 @@ SPINE_C_API void spine_draw_order_timeline_dispose(spine_draw_order_timeline sel SPINE_C_API spine_rtti spine_draw_order_timeline_get_rtti(spine_draw_order_timeline self); SPINE_C_API void spine_draw_order_timeline_apply(spine_draw_order_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API size_t spine_draw_order_timeline_get_frame_count(spine_draw_order_timeline self); -SPINE_C_API void spine_draw_order_timeline_set_frame(spine_draw_order_timeline self, size_t frame, float time, spine_array_int drawOrder); +SPINE_C_API void spine_draw_order_timeline_set_frame(spine_draw_order_timeline self, size_t frame, float time, /*@null*/ spine_array_int drawOrder); SPINE_C_API size_t spine_draw_order_timeline_get_frame_entries(spine_draw_order_timeline self); SPINE_C_API spine_array_float spine_draw_order_timeline_get_frames(spine_draw_order_timeline self); SPINE_C_API float spine_draw_order_timeline_get_duration(spine_draw_order_timeline self); diff --git a/spine-c/src/generated/event_queue_entry.cpp b/spine-c/src/generated/event_queue_entry.cpp index c45bed591..9dff6a09c 100644 --- a/spine-c/src/generated/event_queue_entry.cpp +++ b/spine-c/src/generated/event_queue_entry.cpp @@ -3,7 +3,8 @@ using namespace spine; -spine_event_queue_entry spine_event_queue_entry_create(spine_event_type eventType, spine_track_entry trackEntry, spine_event event) { +spine_event_queue_entry spine_event_queue_entry_create(spine_event_type eventType, /*@null*/ spine_track_entry trackEntry, + /*@null*/ spine_event event) { return (spine_event_queue_entry) new (__FILE__, __LINE__) EventQueueEntry((EventType) eventType, (TrackEntry *) trackEntry, (Event *) event); } @@ -21,22 +22,22 @@ void spine_event_queue_entry_set__type(spine_event_queue_entry self, spine_event _self->_type = (EventType) value; } -spine_track_entry spine_event_queue_entry_get__entry(spine_event_queue_entry self) { +/*@null*/ spine_track_entry spine_event_queue_entry_get__entry(spine_event_queue_entry self) { EventQueueEntry *_self = (EventQueueEntry *) self; return (spine_track_entry) _self->_entry; } -void spine_event_queue_entry_set__entry(spine_event_queue_entry self, spine_track_entry value) { +void spine_event_queue_entry_set__entry(spine_event_queue_entry self, /*@null*/ spine_track_entry value) { EventQueueEntry *_self = (EventQueueEntry *) self; _self->_entry = (TrackEntry *) value; } -spine_event spine_event_queue_entry_get__event(spine_event_queue_entry self) { +/*@null*/ spine_event spine_event_queue_entry_get__event(spine_event_queue_entry self) { EventQueueEntry *_self = (EventQueueEntry *) self; return (spine_event) _self->_event; } -void spine_event_queue_entry_set__event(spine_event_queue_entry self, spine_event value) { +void spine_event_queue_entry_set__event(spine_event_queue_entry self, /*@null*/ spine_event value) { EventQueueEntry *_self = (EventQueueEntry *) self; _self->_event = (Event *) value; } diff --git a/spine-c/src/generated/event_queue_entry.h b/spine-c/src/generated/event_queue_entry.h index 4d59ef8d8..303d828bd 100644 --- a/spine-c/src/generated/event_queue_entry.h +++ b/spine-c/src/generated/event_queue_entry.h @@ -9,16 +9,17 @@ extern "C" { #endif -SPINE_C_API spine_event_queue_entry spine_event_queue_entry_create(spine_event_type eventType, spine_track_entry trackEntry, spine_event event); +SPINE_C_API spine_event_queue_entry spine_event_queue_entry_create(spine_event_type eventType, /*@null*/ spine_track_entry trackEntry, + /*@null*/ spine_event event); SPINE_C_API void spine_event_queue_entry_dispose(spine_event_queue_entry self); SPINE_C_API spine_event_type spine_event_queue_entry_get__type(spine_event_queue_entry self); SPINE_C_API void spine_event_queue_entry_set__type(spine_event_queue_entry self, spine_event_type value); -SPINE_C_API spine_track_entry spine_event_queue_entry_get__entry(spine_event_queue_entry self); -SPINE_C_API void spine_event_queue_entry_set__entry(spine_event_queue_entry self, spine_track_entry value); -SPINE_C_API spine_event spine_event_queue_entry_get__event(spine_event_queue_entry self); -SPINE_C_API void spine_event_queue_entry_set__event(spine_event_queue_entry self, spine_event value); +SPINE_C_API /*@null*/ spine_track_entry spine_event_queue_entry_get__entry(spine_event_queue_entry self); +SPINE_C_API void spine_event_queue_entry_set__entry(spine_event_queue_entry self, /*@null*/ spine_track_entry value); +SPINE_C_API /*@null*/ spine_event spine_event_queue_entry_get__event(spine_event_queue_entry self); +SPINE_C_API void spine_event_queue_entry_set__event(spine_event_queue_entry self, /*@null*/ spine_event value); #ifdef __cplusplus } diff --git a/spine-c/src/generated/event_timeline.cpp b/spine-c/src/generated/event_timeline.cpp index 870c9ad36..3f475cd4f 100644 --- a/spine-c/src/generated/event_timeline.cpp +++ b/spine-c/src/generated/event_timeline.cpp @@ -16,7 +16,7 @@ spine_rtti spine_event_timeline_get_rtti(spine_event_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_event_timeline_apply(spine_event_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_event_timeline_apply(spine_event_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { EventTimeline *_self = (EventTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, @@ -28,7 +28,7 @@ size_t spine_event_timeline_get_frame_count(spine_event_timeline self) { return _self->getFrameCount(); } -spine_array_event spine_event_timeline_get_events(spine_event_timeline self) { +/*@null*/ spine_array_event spine_event_timeline_get_events(spine_event_timeline self) { EventTimeline *_self = (EventTimeline *) self; return (spine_array_event) &_self->getEvents(); } diff --git a/spine-c/src/generated/event_timeline.h b/spine-c/src/generated/event_timeline.h index bacea8e6f..0227ebf0c 100644 --- a/spine-c/src/generated/event_timeline.h +++ b/spine-c/src/generated/event_timeline.h @@ -14,10 +14,11 @@ SPINE_C_API spine_event_timeline spine_event_timeline_create(size_t frameCount); SPINE_C_API void spine_event_timeline_dispose(spine_event_timeline self); SPINE_C_API spine_rtti spine_event_timeline_get_rtti(spine_event_timeline self); -SPINE_C_API void spine_event_timeline_apply(spine_event_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_event_timeline_apply(spine_event_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API size_t spine_event_timeline_get_frame_count(spine_event_timeline self); -SPINE_C_API spine_array_event spine_event_timeline_get_events(spine_event_timeline self); +SPINE_C_API /*@null*/ spine_array_event spine_event_timeline_get_events(spine_event_timeline self); SPINE_C_API void spine_event_timeline_set_frame(spine_event_timeline self, size_t frame, spine_event event); SPINE_C_API size_t spine_event_timeline_get_frame_entries(spine_event_timeline self); SPINE_C_API spine_array_float spine_event_timeline_get_frames(spine_event_timeline self); diff --git a/spine-c/src/generated/from_property.cpp b/spine-c/src/generated/from_property.cpp index 6ac85cca3..2ce76aebf 100644 --- a/spine-c/src/generated/from_property.cpp +++ b/spine-c/src/generated/from_property.cpp @@ -12,7 +12,7 @@ spine_rtti spine_from_property_get_rtti(spine_from_property self) { return (spine_rtti) &_self->getRTTI(); } -float spine_from_property_value(spine_from_property self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets) { +float spine_from_property_value(spine_from_property self, spine_skeleton skeleton, spine_bone_pose source, bool local, /*@null*/ float *offsets) { FromProperty *_self = (FromProperty *) self; return _self->value(*((Skeleton *) skeleton), *((BonePose *) source), local, offsets); } @@ -31,12 +31,12 @@ void spine_from_property_set__offset(spine_from_property self, float value) { _self->_offset = value; } -spine_array_to_property spine_from_property_get__to(spine_from_property self) { +/*@null*/ spine_array_to_property spine_from_property_get__to(spine_from_property self) { FromProperty *_self = (FromProperty *) self; return (spine_array_to_property) &_self->_to; } -void spine_from_property_set__to(spine_from_property self, spine_array_to_property value) { +void spine_from_property_set__to(spine_from_property self, /*@null*/ spine_array_to_property value) { FromProperty *_self = (FromProperty *) self; _self->_to = *((Array *) value); } diff --git a/spine-c/src/generated/from_property.h b/spine-c/src/generated/from_property.h index f6630658d..0e1fab436 100644 --- a/spine-c/src/generated/from_property.h +++ b/spine-c/src/generated/from_property.h @@ -12,12 +12,13 @@ extern "C" { SPINE_C_API void spine_from_property_dispose(spine_from_property self); SPINE_C_API spine_rtti spine_from_property_get_rtti(spine_from_property self); -SPINE_C_API float spine_from_property_value(spine_from_property self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets); +SPINE_C_API float spine_from_property_value(spine_from_property self, spine_skeleton skeleton, spine_bone_pose source, bool local, + /*@null*/ float *offsets); SPINE_C_API spine_rtti spine_from_property_rtti(void); SPINE_C_API float spine_from_property_get__offset(spine_from_property self); SPINE_C_API void spine_from_property_set__offset(spine_from_property self, float value); -SPINE_C_API spine_array_to_property spine_from_property_get__to(spine_from_property self); -SPINE_C_API void spine_from_property_set__to(spine_from_property self, spine_array_to_property value); +SPINE_C_API /*@null*/ spine_array_to_property spine_from_property_get__to(spine_from_property self); +SPINE_C_API void spine_from_property_set__to(spine_from_property self, /*@null*/ spine_array_to_property value); #ifdef __cplusplus } diff --git a/spine-c/src/generated/from_rotate.cpp b/spine-c/src/generated/from_rotate.cpp index 1e49a5d59..a4841cf53 100644 --- a/spine-c/src/generated/from_rotate.cpp +++ b/spine-c/src/generated/from_rotate.cpp @@ -16,7 +16,7 @@ spine_rtti spine_from_rotate_get_rtti(spine_from_rotate self) { return (spine_rtti) &_self->getRTTI(); } -float spine_from_rotate_value(spine_from_rotate self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets) { +float spine_from_rotate_value(spine_from_rotate self, spine_skeleton skeleton, spine_bone_pose source, bool local, /*@null*/ float *offsets) { FromRotate *_self = (FromRotate *) self; return _self->value(*((Skeleton *) skeleton), *((BonePose *) source), local, offsets); } diff --git a/spine-c/src/generated/from_rotate.h b/spine-c/src/generated/from_rotate.h index fe7d6a31c..13a441d6b 100644 --- a/spine-c/src/generated/from_rotate.h +++ b/spine-c/src/generated/from_rotate.h @@ -14,7 +14,8 @@ SPINE_C_API spine_from_rotate spine_from_rotate_create(void); SPINE_C_API void spine_from_rotate_dispose(spine_from_rotate self); SPINE_C_API spine_rtti spine_from_rotate_get_rtti(spine_from_rotate self); -SPINE_C_API float spine_from_rotate_value(spine_from_rotate self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets); +SPINE_C_API float spine_from_rotate_value(spine_from_rotate self, spine_skeleton skeleton, spine_bone_pose source, bool local, + /*@null*/ float *offsets); SPINE_C_API spine_rtti spine_from_rotate_rtti(void); #ifdef __cplusplus diff --git a/spine-c/src/generated/from_scale_x.cpp b/spine-c/src/generated/from_scale_x.cpp index 51a4ae5c8..b56fce65a 100644 --- a/spine-c/src/generated/from_scale_x.cpp +++ b/spine-c/src/generated/from_scale_x.cpp @@ -16,7 +16,7 @@ spine_rtti spine_from_scale_x_get_rtti(spine_from_scale_x self) { return (spine_rtti) &_self->getRTTI(); } -float spine_from_scale_x_value(spine_from_scale_x self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets) { +float spine_from_scale_x_value(spine_from_scale_x self, spine_skeleton skeleton, spine_bone_pose source, bool local, /*@null*/ float *offsets) { FromScaleX *_self = (FromScaleX *) self; return _self->value(*((Skeleton *) skeleton), *((BonePose *) source), local, offsets); } diff --git a/spine-c/src/generated/from_scale_x.h b/spine-c/src/generated/from_scale_x.h index d7ed1c9d7..c4086551d 100644 --- a/spine-c/src/generated/from_scale_x.h +++ b/spine-c/src/generated/from_scale_x.h @@ -14,7 +14,8 @@ SPINE_C_API spine_from_scale_x spine_from_scale_x_create(void); SPINE_C_API void spine_from_scale_x_dispose(spine_from_scale_x self); SPINE_C_API spine_rtti spine_from_scale_x_get_rtti(spine_from_scale_x self); -SPINE_C_API float spine_from_scale_x_value(spine_from_scale_x self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets); +SPINE_C_API float spine_from_scale_x_value(spine_from_scale_x self, spine_skeleton skeleton, spine_bone_pose source, bool local, + /*@null*/ float *offsets); SPINE_C_API spine_rtti spine_from_scale_x_rtti(void); #ifdef __cplusplus diff --git a/spine-c/src/generated/from_scale_y.cpp b/spine-c/src/generated/from_scale_y.cpp index 9f19a8ccb..8f7fc1992 100644 --- a/spine-c/src/generated/from_scale_y.cpp +++ b/spine-c/src/generated/from_scale_y.cpp @@ -16,7 +16,7 @@ spine_rtti spine_from_scale_y_get_rtti(spine_from_scale_y self) { return (spine_rtti) &_self->getRTTI(); } -float spine_from_scale_y_value(spine_from_scale_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets) { +float spine_from_scale_y_value(spine_from_scale_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, /*@null*/ float *offsets) { FromScaleY *_self = (FromScaleY *) self; return _self->value(*((Skeleton *) skeleton), *((BonePose *) source), local, offsets); } diff --git a/spine-c/src/generated/from_scale_y.h b/spine-c/src/generated/from_scale_y.h index b8ccc7591..68354da1d 100644 --- a/spine-c/src/generated/from_scale_y.h +++ b/spine-c/src/generated/from_scale_y.h @@ -14,7 +14,8 @@ SPINE_C_API spine_from_scale_y spine_from_scale_y_create(void); SPINE_C_API void spine_from_scale_y_dispose(spine_from_scale_y self); SPINE_C_API spine_rtti spine_from_scale_y_get_rtti(spine_from_scale_y self); -SPINE_C_API float spine_from_scale_y_value(spine_from_scale_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets); +SPINE_C_API float spine_from_scale_y_value(spine_from_scale_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, + /*@null*/ float *offsets); SPINE_C_API spine_rtti spine_from_scale_y_rtti(void); #ifdef __cplusplus diff --git a/spine-c/src/generated/from_shear_y.cpp b/spine-c/src/generated/from_shear_y.cpp index 813003860..3e56a206c 100644 --- a/spine-c/src/generated/from_shear_y.cpp +++ b/spine-c/src/generated/from_shear_y.cpp @@ -16,7 +16,7 @@ spine_rtti spine_from_shear_y_get_rtti(spine_from_shear_y self) { return (spine_rtti) &_self->getRTTI(); } -float spine_from_shear_y_value(spine_from_shear_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets) { +float spine_from_shear_y_value(spine_from_shear_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, /*@null*/ float *offsets) { FromShearY *_self = (FromShearY *) self; return _self->value(*((Skeleton *) skeleton), *((BonePose *) source), local, offsets); } diff --git a/spine-c/src/generated/from_shear_y.h b/spine-c/src/generated/from_shear_y.h index 9da30fd5a..eff29af2d 100644 --- a/spine-c/src/generated/from_shear_y.h +++ b/spine-c/src/generated/from_shear_y.h @@ -14,7 +14,8 @@ SPINE_C_API spine_from_shear_y spine_from_shear_y_create(void); SPINE_C_API void spine_from_shear_y_dispose(spine_from_shear_y self); SPINE_C_API spine_rtti spine_from_shear_y_get_rtti(spine_from_shear_y self); -SPINE_C_API float spine_from_shear_y_value(spine_from_shear_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets); +SPINE_C_API float spine_from_shear_y_value(spine_from_shear_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, + /*@null*/ float *offsets); SPINE_C_API spine_rtti spine_from_shear_y_rtti(void); #ifdef __cplusplus diff --git a/spine-c/src/generated/from_x.cpp b/spine-c/src/generated/from_x.cpp index 4cdf850bf..d16fafa7b 100644 --- a/spine-c/src/generated/from_x.cpp +++ b/spine-c/src/generated/from_x.cpp @@ -16,7 +16,7 @@ spine_rtti spine_from_x_get_rtti(spine_from_x self) { return (spine_rtti) &_self->getRTTI(); } -float spine_from_x_value(spine_from_x self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets) { +float spine_from_x_value(spine_from_x self, spine_skeleton skeleton, spine_bone_pose source, bool local, /*@null*/ float *offsets) { FromX *_self = (FromX *) self; return _self->value(*((Skeleton *) skeleton), *((BonePose *) source), local, offsets); } diff --git a/spine-c/src/generated/from_x.h b/spine-c/src/generated/from_x.h index 9ea101170..1a84a194a 100644 --- a/spine-c/src/generated/from_x.h +++ b/spine-c/src/generated/from_x.h @@ -14,7 +14,7 @@ SPINE_C_API spine_from_x spine_from_x_create(void); SPINE_C_API void spine_from_x_dispose(spine_from_x self); SPINE_C_API spine_rtti spine_from_x_get_rtti(spine_from_x self); -SPINE_C_API float spine_from_x_value(spine_from_x self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets); +SPINE_C_API float spine_from_x_value(spine_from_x self, spine_skeleton skeleton, spine_bone_pose source, bool local, /*@null*/ float *offsets); SPINE_C_API spine_rtti spine_from_x_rtti(void); #ifdef __cplusplus diff --git a/spine-c/src/generated/from_y.cpp b/spine-c/src/generated/from_y.cpp index e4833533b..3d023d726 100644 --- a/spine-c/src/generated/from_y.cpp +++ b/spine-c/src/generated/from_y.cpp @@ -16,7 +16,7 @@ spine_rtti spine_from_y_get_rtti(spine_from_y self) { return (spine_rtti) &_self->getRTTI(); } -float spine_from_y_value(spine_from_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets) { +float spine_from_y_value(spine_from_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, /*@null*/ float *offsets) { FromY *_self = (FromY *) self; return _self->value(*((Skeleton *) skeleton), *((BonePose *) source), local, offsets); } diff --git a/spine-c/src/generated/from_y.h b/spine-c/src/generated/from_y.h index dcdbec144..8c023d0f3 100644 --- a/spine-c/src/generated/from_y.h +++ b/spine-c/src/generated/from_y.h @@ -14,7 +14,7 @@ SPINE_C_API spine_from_y spine_from_y_create(void); SPINE_C_API void spine_from_y_dispose(spine_from_y self); SPINE_C_API spine_rtti spine_from_y_get_rtti(spine_from_y self); -SPINE_C_API float spine_from_y_value(spine_from_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, float *offsets); +SPINE_C_API float spine_from_y_value(spine_from_y self, spine_skeleton skeleton, spine_bone_pose source, bool local, /*@null*/ float *offsets); SPINE_C_API spine_rtti spine_from_y_rtti(void); #ifdef __cplusplus diff --git a/spine-c/src/generated/ik_constraint.cpp b/spine-c/src/generated/ik_constraint.cpp index 62b9589dc..5e0a9ef02 100644 --- a/spine-c/src/generated/ik_constraint.cpp +++ b/spine-c/src/generated/ik_constraint.cpp @@ -41,7 +41,7 @@ spine_ik_constraint_data spine_ik_constraint_get_data(spine_ik_constraint self) return (spine_ik_constraint_data) &_self->getData(); } -spine_array_bone_pose spine_ik_constraint_get_bones(spine_ik_constraint self) { +/*@null*/ spine_array_bone_pose spine_ik_constraint_get_bones(spine_ik_constraint self) { IkConstraint *_self = (IkConstraint *) self; return (spine_array_bone_pose) &_self->getBones(); } diff --git a/spine-c/src/generated/ik_constraint.h b/spine-c/src/generated/ik_constraint.h index 9752fe33b..0f7c87320 100644 --- a/spine-c/src/generated/ik_constraint.h +++ b/spine-c/src/generated/ik_constraint.h @@ -19,7 +19,7 @@ SPINE_C_API void spine_ik_constraint_update(spine_ik_constraint self, spine_skel SPINE_C_API void spine_ik_constraint_sort(spine_ik_constraint self, spine_skeleton skeleton); SPINE_C_API bool spine_ik_constraint_is_source_active(spine_ik_constraint self); SPINE_C_API spine_ik_constraint_data spine_ik_constraint_get_data(spine_ik_constraint self); -SPINE_C_API spine_array_bone_pose spine_ik_constraint_get_bones(spine_ik_constraint self); +SPINE_C_API /*@null*/ spine_array_bone_pose spine_ik_constraint_get_bones(spine_ik_constraint self); SPINE_C_API spine_bone spine_ik_constraint_get_target(spine_ik_constraint self); SPINE_C_API void spine_ik_constraint_set_target(spine_ik_constraint self, spine_bone inValue); SPINE_C_API void spine_ik_constraint_apply_1(spine_skeleton skeleton, spine_bone_pose bone, float targetX, float targetY, bool compress, bool stretch, diff --git a/spine-c/src/generated/ik_constraint_data.cpp b/spine-c/src/generated/ik_constraint_data.cpp index 8bd68ffc2..2409c740b 100644 --- a/spine-c/src/generated/ik_constraint_data.cpp +++ b/spine-c/src/generated/ik_constraint_data.cpp @@ -21,7 +21,7 @@ spine_constraint spine_ik_constraint_data_create_method(spine_ik_constraint_data return (spine_constraint) &_self->create(*((Skeleton *) skeleton)); } -spine_array_bone_data spine_ik_constraint_data_get_bones(spine_ik_constraint_data self) { +/*@null*/ spine_array_bone_data spine_ik_constraint_data_get_bones(spine_ik_constraint_data self) { IkConstraintData *_self = (IkConstraintData *) self; return (spine_array_bone_data) &_self->getBones(); } diff --git a/spine-c/src/generated/ik_constraint_data.h b/spine-c/src/generated/ik_constraint_data.h index c5ac259ff..8b24b632a 100644 --- a/spine-c/src/generated/ik_constraint_data.h +++ b/spine-c/src/generated/ik_constraint_data.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_ik_constraint_data_dispose(spine_ik_constraint_data self) SPINE_C_API spine_rtti spine_ik_constraint_data_get_rtti(spine_ik_constraint_data self); SPINE_C_API spine_constraint spine_ik_constraint_data_create_method(spine_ik_constraint_data self, spine_skeleton skeleton); -SPINE_C_API spine_array_bone_data spine_ik_constraint_data_get_bones(spine_ik_constraint_data self); +SPINE_C_API /*@null*/ spine_array_bone_data spine_ik_constraint_data_get_bones(spine_ik_constraint_data self); SPINE_C_API spine_bone_data spine_ik_constraint_data_get_target(spine_ik_constraint_data self); SPINE_C_API void spine_ik_constraint_data_set_target(spine_ik_constraint_data self, spine_bone_data inValue); SPINE_C_API bool spine_ik_constraint_data_get_uniform(spine_ik_constraint_data self); diff --git a/spine-c/src/generated/ik_constraint_timeline.cpp b/spine-c/src/generated/ik_constraint_timeline.cpp index 4819e3a59..619171d04 100644 --- a/spine-c/src/generated/ik_constraint_timeline.cpp +++ b/spine-c/src/generated/ik_constraint_timeline.cpp @@ -17,7 +17,7 @@ spine_rtti spine_ik_constraint_timeline_get_rtti(spine_ik_constraint_timeline se } void spine_ik_constraint_timeline_apply(spine_ik_constraint_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { IkConstraintTimeline *_self = (IkConstraintTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/ik_constraint_timeline.h b/spine-c/src/generated/ik_constraint_timeline.h index f71dd4f93..132028192 100644 --- a/spine-c/src/generated/ik_constraint_timeline.h +++ b/spine-c/src/generated/ik_constraint_timeline.h @@ -15,8 +15,8 @@ SPINE_C_API void spine_ik_constraint_timeline_dispose(spine_ik_constraint_timeli SPINE_C_API spine_rtti spine_ik_constraint_timeline_get_rtti(spine_ik_constraint_timeline self); SPINE_C_API void spine_ik_constraint_timeline_apply(spine_ik_constraint_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API void spine_ik_constraint_timeline_set_frame(spine_ik_constraint_timeline self, int frame, float time, float mix, float softness, int bendDirection, bool compress, bool stretch); SPINE_C_API int spine_ik_constraint_timeline_get_constraint_index(spine_ik_constraint_timeline self); diff --git a/spine-c/src/generated/inherit_timeline.cpp b/spine-c/src/generated/inherit_timeline.cpp index f53917a01..a95651cf6 100644 --- a/spine-c/src/generated/inherit_timeline.cpp +++ b/spine-c/src/generated/inherit_timeline.cpp @@ -21,8 +21,9 @@ void spine_inherit_timeline_set_frame(spine_inherit_timeline self, int frame, fl _self->setFrame(frame, time, (Inherit) inherit); } -void spine_inherit_timeline_apply(spine_inherit_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_inherit_timeline_apply(spine_inherit_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { InheritTimeline *_self = (InheritTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/inherit_timeline.h b/spine-c/src/generated/inherit_timeline.h index 91717178f..16c31c010 100644 --- a/spine-c/src/generated/inherit_timeline.h +++ b/spine-c/src/generated/inherit_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_inherit_timeline_dispose(spine_inherit_timeline self); SPINE_C_API spine_rtti spine_inherit_timeline_get_rtti(spine_inherit_timeline self); SPINE_C_API void spine_inherit_timeline_set_frame(spine_inherit_timeline self, int frame, float time, spine_inherit inherit); SPINE_C_API void spine_inherit_timeline_apply(spine_inherit_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_inherit_timeline_get_bone_index(spine_inherit_timeline self); SPINE_C_API void spine_inherit_timeline_set_bone_index(spine_inherit_timeline self, int inValue); diff --git a/spine-c/src/generated/linked_mesh.cpp b/spine-c/src/generated/linked_mesh.cpp index 107cba81e..2c39f134d 100644 --- a/spine-c/src/generated/linked_mesh.cpp +++ b/spine-c/src/generated/linked_mesh.cpp @@ -3,12 +3,12 @@ using namespace spine; -spine_linked_mesh spine_linked_mesh_create(spine_mesh_attachment mesh, const int skinIndex, size_t slotIndex, const char *parent, +spine_linked_mesh spine_linked_mesh_create(/*@null*/ spine_mesh_attachment mesh, const int skinIndex, size_t slotIndex, const char *parent, bool inheritTimelines) { return (spine_linked_mesh) new (__FILE__, __LINE__) LinkedMesh((MeshAttachment *) mesh, skinIndex, slotIndex, String(parent), inheritTimelines); } -spine_linked_mesh spine_linked_mesh_create2(spine_mesh_attachment mesh, const char *skin, size_t slotIndex, const char *parent, +spine_linked_mesh spine_linked_mesh_create2(/*@null*/ spine_mesh_attachment mesh, const char *skin, size_t slotIndex, const char *parent, bool inheritTimelines) { return (spine_linked_mesh) new (__FILE__, __LINE__) LinkedMesh((MeshAttachment *) mesh, String(skin), slotIndex, String(parent), inheritTimelines); diff --git a/spine-c/src/generated/linked_mesh.h b/spine-c/src/generated/linked_mesh.h index d4acb933c..b1eb76c67 100644 --- a/spine-c/src/generated/linked_mesh.h +++ b/spine-c/src/generated/linked_mesh.h @@ -9,9 +9,9 @@ extern "C" { #endif -SPINE_C_API spine_linked_mesh spine_linked_mesh_create(spine_mesh_attachment mesh, const int skinIndex, size_t slotIndex, const char *parent, - bool inheritTimelines); -SPINE_C_API spine_linked_mesh spine_linked_mesh_create2(spine_mesh_attachment mesh, const char *skin, size_t slotIndex, const char *parent, +SPINE_C_API spine_linked_mesh spine_linked_mesh_create(/*@null*/ spine_mesh_attachment mesh, const int skinIndex, size_t slotIndex, + const char *parent, bool inheritTimelines); +SPINE_C_API spine_linked_mesh spine_linked_mesh_create2(/*@null*/ spine_mesh_attachment mesh, const char *skin, size_t slotIndex, const char *parent, bool inheritTimelines); SPINE_C_API void spine_linked_mesh_dispose(spine_linked_mesh self); diff --git a/spine-c/src/generated/mesh_attachment.cpp b/spine-c/src/generated/mesh_attachment.cpp index 2d8e779d8..649d055ca 100644 --- a/spine-c/src/generated/mesh_attachment.cpp +++ b/spine-c/src/generated/mesh_attachment.cpp @@ -17,7 +17,7 @@ spine_rtti spine_mesh_attachment_get_rtti(spine_mesh_attachment self) { } void spine_mesh_attachment_compute_world_vertices_1(spine_mesh_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, size_t count, - float *worldVertices, size_t offset, size_t stride) { + /*@null*/ float *worldVertices, size_t offset, size_t stride) { MeshAttachment *_self = (MeshAttachment *) self; _self->computeWorldVertices(*((Skeleton *) skeleton), *((Slot *) slot), start, count, worldVertices, offset, stride); } @@ -83,7 +83,7 @@ void spine_mesh_attachment_set_path(spine_mesh_attachment self, const char *inVa _self->setPath(String(inValue)); } -spine_texture_region spine_mesh_attachment_get_region(spine_mesh_attachment self) { +/*@null*/ spine_texture_region spine_mesh_attachment_get_region(spine_mesh_attachment self) { MeshAttachment *_self = (MeshAttachment *) self; return (spine_texture_region) _self->getRegion(); } @@ -93,22 +93,22 @@ void spine_mesh_attachment_set_region(spine_mesh_attachment self, spine_texture_ _self->setRegion(*((TextureRegion *) region)); } -spine_sequence spine_mesh_attachment_get_sequence(spine_mesh_attachment self) { +/*@null*/ spine_sequence spine_mesh_attachment_get_sequence(spine_mesh_attachment self) { MeshAttachment *_self = (MeshAttachment *) self; return (spine_sequence) _self->getSequence(); } -void spine_mesh_attachment_set_sequence(spine_mesh_attachment self, spine_sequence sequence) { +void spine_mesh_attachment_set_sequence(spine_mesh_attachment self, /*@null*/ spine_sequence sequence) { MeshAttachment *_self = (MeshAttachment *) self; _self->setSequence((Sequence *) sequence); } -spine_mesh_attachment spine_mesh_attachment_get_parent_mesh(spine_mesh_attachment self) { +/*@null*/ spine_mesh_attachment spine_mesh_attachment_get_parent_mesh(spine_mesh_attachment self) { MeshAttachment *_self = (MeshAttachment *) self; return (spine_mesh_attachment) _self->getParentMesh(); } -void spine_mesh_attachment_set_parent_mesh(spine_mesh_attachment self, spine_mesh_attachment inValue) { +void spine_mesh_attachment_set_parent_mesh(spine_mesh_attachment self, /*@null*/ spine_mesh_attachment inValue) { MeshAttachment *_self = (MeshAttachment *) self; _self->setParentMesh((MeshAttachment *) inValue); } @@ -188,12 +188,12 @@ void spine_mesh_attachment_set_world_vertices_length(spine_mesh_attachment self, _self->setWorldVerticesLength(inValue); } -spine_attachment spine_mesh_attachment_get_timeline_attachment(spine_mesh_attachment self) { +/*@null*/ spine_attachment spine_mesh_attachment_get_timeline_attachment(spine_mesh_attachment self) { VertexAttachment *_self = (VertexAttachment *) (MeshAttachment *) self; return (spine_attachment) _self->getTimelineAttachment(); } -void spine_mesh_attachment_set_timeline_attachment(spine_mesh_attachment self, spine_attachment attachment) { +void spine_mesh_attachment_set_timeline_attachment(spine_mesh_attachment self, /*@null*/ spine_attachment attachment) { VertexAttachment *_self = (VertexAttachment *) (MeshAttachment *) self; _self->setTimelineAttachment((Attachment *) attachment); } diff --git a/spine-c/src/generated/mesh_attachment.h b/spine-c/src/generated/mesh_attachment.h index e742dfc9d..048daf77e 100644 --- a/spine-c/src/generated/mesh_attachment.h +++ b/spine-c/src/generated/mesh_attachment.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_mesh_attachment_dispose(spine_mesh_attachment self); SPINE_C_API spine_rtti spine_mesh_attachment_get_rtti(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_compute_world_vertices_1(spine_mesh_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, - size_t count, float *worldVertices, size_t offset, size_t stride); + size_t count, /*@null*/ float *worldVertices, size_t offset, size_t stride); SPINE_C_API void spine_mesh_attachment_compute_world_vertices_2(spine_mesh_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, size_t count, spine_array_float worldVertices, size_t offset, size_t stride); SPINE_C_API void spine_mesh_attachment_update_region(spine_mesh_attachment self); @@ -29,12 +29,12 @@ SPINE_C_API void spine_mesh_attachment_set_triangles(spine_mesh_attachment self, SPINE_C_API spine_color spine_mesh_attachment_get_color(spine_mesh_attachment self); SPINE_C_API const char *spine_mesh_attachment_get_path(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_set_path(spine_mesh_attachment self, const char *inValue); -SPINE_C_API spine_texture_region spine_mesh_attachment_get_region(spine_mesh_attachment self); +SPINE_C_API /*@null*/ spine_texture_region spine_mesh_attachment_get_region(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_set_region(spine_mesh_attachment self, spine_texture_region region); -SPINE_C_API spine_sequence spine_mesh_attachment_get_sequence(spine_mesh_attachment self); -SPINE_C_API void spine_mesh_attachment_set_sequence(spine_mesh_attachment self, spine_sequence sequence); -SPINE_C_API spine_mesh_attachment spine_mesh_attachment_get_parent_mesh(spine_mesh_attachment self); -SPINE_C_API void spine_mesh_attachment_set_parent_mesh(spine_mesh_attachment self, spine_mesh_attachment inValue); +SPINE_C_API /*@null*/ spine_sequence spine_mesh_attachment_get_sequence(spine_mesh_attachment self); +SPINE_C_API void spine_mesh_attachment_set_sequence(spine_mesh_attachment self, /*@null*/ spine_sequence sequence); +SPINE_C_API /*@null*/ spine_mesh_attachment spine_mesh_attachment_get_parent_mesh(spine_mesh_attachment self); +SPINE_C_API void spine_mesh_attachment_set_parent_mesh(spine_mesh_attachment self, /*@null*/ spine_mesh_attachment inValue); SPINE_C_API spine_array_unsigned_short spine_mesh_attachment_get_edges(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_set_edges(spine_mesh_attachment self, spine_array_unsigned_short inValue); SPINE_C_API float spine_mesh_attachment_get_width(spine_mesh_attachment self); @@ -50,8 +50,8 @@ SPINE_C_API spine_array_float spine_mesh_attachment_get_vertices(spine_mesh_atta SPINE_C_API void spine_mesh_attachment_set_vertices(spine_mesh_attachment self, spine_array_float vertices); SPINE_C_API size_t spine_mesh_attachment_get_world_vertices_length(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_set_world_vertices_length(spine_mesh_attachment self, size_t inValue); -SPINE_C_API spine_attachment spine_mesh_attachment_get_timeline_attachment(spine_mesh_attachment self); -SPINE_C_API void spine_mesh_attachment_set_timeline_attachment(spine_mesh_attachment self, spine_attachment attachment); +SPINE_C_API /*@null*/ spine_attachment spine_mesh_attachment_get_timeline_attachment(spine_mesh_attachment self); +SPINE_C_API void spine_mesh_attachment_set_timeline_attachment(spine_mesh_attachment self, /*@null*/ spine_attachment attachment); SPINE_C_API void spine_mesh_attachment_copy_to(spine_mesh_attachment self, spine_vertex_attachment other); SPINE_C_API const char *spine_mesh_attachment_get_name(spine_mesh_attachment self); SPINE_C_API int spine_mesh_attachment_get_ref_count(spine_mesh_attachment self); diff --git a/spine-c/src/generated/path_attachment.cpp b/spine-c/src/generated/path_attachment.cpp index 7ec488f09..2531f616e 100644 --- a/spine-c/src/generated/path_attachment.cpp +++ b/spine-c/src/generated/path_attachment.cpp @@ -57,7 +57,7 @@ spine_attachment spine_path_attachment_copy(spine_path_attachment self) { } void spine_path_attachment_compute_world_vertices_1(spine_path_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, size_t count, - float *worldVertices, size_t offset, size_t stride) { + /*@null*/ float *worldVertices, size_t offset, size_t stride) { VertexAttachment *_self = (VertexAttachment *) (PathAttachment *) self; _self->computeWorldVertices(*((Skeleton *) skeleton), *((Slot *) slot), start, count, worldVertices, offset, stride); } @@ -103,12 +103,12 @@ void spine_path_attachment_set_world_vertices_length(spine_path_attachment self, _self->setWorldVerticesLength(inValue); } -spine_attachment spine_path_attachment_get_timeline_attachment(spine_path_attachment self) { +/*@null*/ spine_attachment spine_path_attachment_get_timeline_attachment(spine_path_attachment self) { VertexAttachment *_self = (VertexAttachment *) (PathAttachment *) self; return (spine_attachment) _self->getTimelineAttachment(); } -void spine_path_attachment_set_timeline_attachment(spine_path_attachment self, spine_attachment attachment) { +void spine_path_attachment_set_timeline_attachment(spine_path_attachment self, /*@null*/ spine_attachment attachment) { VertexAttachment *_self = (VertexAttachment *) (PathAttachment *) self; _self->setTimelineAttachment((Attachment *) attachment); } diff --git a/spine-c/src/generated/path_attachment.h b/spine-c/src/generated/path_attachment.h index a03fb3a22..f572d362c 100644 --- a/spine-c/src/generated/path_attachment.h +++ b/spine-c/src/generated/path_attachment.h @@ -23,7 +23,7 @@ SPINE_C_API void spine_path_attachment_set_constant_speed(spine_path_attachment SPINE_C_API spine_color spine_path_attachment_get_color(spine_path_attachment self); SPINE_C_API spine_attachment spine_path_attachment_copy(spine_path_attachment self); SPINE_C_API void spine_path_attachment_compute_world_vertices_1(spine_path_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, - size_t count, float *worldVertices, size_t offset, size_t stride); + size_t count, /*@null*/ float *worldVertices, size_t offset, size_t stride); SPINE_C_API void spine_path_attachment_compute_world_vertices_2(spine_path_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, size_t count, spine_array_float worldVertices, size_t offset, size_t stride); SPINE_C_API int spine_path_attachment_get_id(spine_path_attachment self); @@ -33,8 +33,8 @@ SPINE_C_API spine_array_float spine_path_attachment_get_vertices(spine_path_atta SPINE_C_API void spine_path_attachment_set_vertices(spine_path_attachment self, spine_array_float vertices); SPINE_C_API size_t spine_path_attachment_get_world_vertices_length(spine_path_attachment self); SPINE_C_API void spine_path_attachment_set_world_vertices_length(spine_path_attachment self, size_t inValue); -SPINE_C_API spine_attachment spine_path_attachment_get_timeline_attachment(spine_path_attachment self); -SPINE_C_API void spine_path_attachment_set_timeline_attachment(spine_path_attachment self, spine_attachment attachment); +SPINE_C_API /*@null*/ spine_attachment spine_path_attachment_get_timeline_attachment(spine_path_attachment self); +SPINE_C_API void spine_path_attachment_set_timeline_attachment(spine_path_attachment self, /*@null*/ spine_attachment attachment); SPINE_C_API void spine_path_attachment_copy_to(spine_path_attachment self, spine_vertex_attachment other); SPINE_C_API const char *spine_path_attachment_get_name(spine_path_attachment self); SPINE_C_API int spine_path_attachment_get_ref_count(spine_path_attachment self); diff --git a/spine-c/src/generated/path_constraint.cpp b/spine-c/src/generated/path_constraint.cpp index 65a61c164..51f51baac 100644 --- a/spine-c/src/generated/path_constraint.cpp +++ b/spine-c/src/generated/path_constraint.cpp @@ -36,7 +36,7 @@ bool spine_path_constraint_is_source_active(spine_path_constraint self) { return _self->isSourceActive(); } -spine_array_bone_pose spine_path_constraint_get_bones(spine_path_constraint self) { +/*@null*/ spine_array_bone_pose spine_path_constraint_get_bones(spine_path_constraint self) { PathConstraint *_self = (PathConstraint *) self; return (spine_array_bone_pose) &_self->getBones(); } diff --git a/spine-c/src/generated/path_constraint.h b/spine-c/src/generated/path_constraint.h index 911ab5f64..9f0e4093f 100644 --- a/spine-c/src/generated/path_constraint.h +++ b/spine-c/src/generated/path_constraint.h @@ -18,7 +18,7 @@ SPINE_C_API spine_path_constraint spine_path_constraint_copy(spine_path_constrai SPINE_C_API void spine_path_constraint_update(spine_path_constraint self, spine_skeleton skeleton, spine_physics physics); SPINE_C_API void spine_path_constraint_sort(spine_path_constraint self, spine_skeleton skeleton); SPINE_C_API bool spine_path_constraint_is_source_active(spine_path_constraint self); -SPINE_C_API spine_array_bone_pose spine_path_constraint_get_bones(spine_path_constraint self); +SPINE_C_API /*@null*/ spine_array_bone_pose spine_path_constraint_get_bones(spine_path_constraint self); SPINE_C_API spine_slot spine_path_constraint_get_slot(spine_path_constraint self); SPINE_C_API void spine_path_constraint_set_slot(spine_path_constraint self, spine_slot slot); SPINE_C_API spine_path_constraint_data spine_path_constraint_get_data(spine_path_constraint self); diff --git a/spine-c/src/generated/path_constraint_data.cpp b/spine-c/src/generated/path_constraint_data.cpp index 18419a407..42440b054 100644 --- a/spine-c/src/generated/path_constraint_data.cpp +++ b/spine-c/src/generated/path_constraint_data.cpp @@ -21,7 +21,7 @@ spine_constraint spine_path_constraint_data_create_method(spine_path_constraint_ return (spine_constraint) &_self->create(*((Skeleton *) skeleton)); } -spine_array_bone_data spine_path_constraint_data_get_bones(spine_path_constraint_data self) { +/*@null*/ spine_array_bone_data spine_path_constraint_data_get_bones(spine_path_constraint_data self) { PathConstraintData *_self = (PathConstraintData *) self; return (spine_array_bone_data) &_self->getBones(); } diff --git a/spine-c/src/generated/path_constraint_data.h b/spine-c/src/generated/path_constraint_data.h index 3cad0377f..f900d8285 100644 --- a/spine-c/src/generated/path_constraint_data.h +++ b/spine-c/src/generated/path_constraint_data.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_path_constraint_data_dispose(spine_path_constraint_data s SPINE_C_API spine_rtti spine_path_constraint_data_get_rtti(spine_path_constraint_data self); SPINE_C_API spine_constraint spine_path_constraint_data_create_method(spine_path_constraint_data self, spine_skeleton skeleton); -SPINE_C_API spine_array_bone_data spine_path_constraint_data_get_bones(spine_path_constraint_data self); +SPINE_C_API /*@null*/ spine_array_bone_data spine_path_constraint_data_get_bones(spine_path_constraint_data self); SPINE_C_API spine_slot_data spine_path_constraint_data_get_slot(spine_path_constraint_data self); SPINE_C_API void spine_path_constraint_data_set_slot(spine_path_constraint_data self, spine_slot_data slot); SPINE_C_API spine_position_mode spine_path_constraint_data_get_position_mode(spine_path_constraint_data self); diff --git a/spine-c/src/generated/path_constraint_mix_timeline.cpp b/spine-c/src/generated/path_constraint_mix_timeline.cpp index a28f65ba2..f89865b1e 100644 --- a/spine-c/src/generated/path_constraint_mix_timeline.cpp +++ b/spine-c/src/generated/path_constraint_mix_timeline.cpp @@ -17,7 +17,7 @@ spine_rtti spine_path_constraint_mix_timeline_get_rtti(spine_path_constraint_mix } void spine_path_constraint_mix_timeline_apply(spine_path_constraint_mix_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { PathConstraintMixTimeline *_self = (PathConstraintMixTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/path_constraint_mix_timeline.h b/spine-c/src/generated/path_constraint_mix_timeline.h index e1580a2cf..604254f25 100644 --- a/spine-c/src/generated/path_constraint_mix_timeline.h +++ b/spine-c/src/generated/path_constraint_mix_timeline.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_path_constraint_mix_timeline_dispose(spine_path_constrain SPINE_C_API spine_rtti spine_path_constraint_mix_timeline_get_rtti(spine_path_constraint_mix_timeline self); SPINE_C_API void spine_path_constraint_mix_timeline_apply(spine_path_constraint_mix_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API void spine_path_constraint_mix_timeline_set_frame(spine_path_constraint_mix_timeline self, int frame, float time, float mixRotate, float mixX, float mixY); diff --git a/spine-c/src/generated/path_constraint_position_timeline.cpp b/spine-c/src/generated/path_constraint_position_timeline.cpp index 60ee8c2c3..78e5300be 100644 --- a/spine-c/src/generated/path_constraint_position_timeline.cpp +++ b/spine-c/src/generated/path_constraint_position_timeline.cpp @@ -18,8 +18,8 @@ spine_rtti spine_path_constraint_position_timeline_get_rtti(spine_path_constrain } void spine_path_constraint_position_timeline_apply(spine_path_constraint_position_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose) { + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose) { PathConstraintPositionTimeline *_self = (PathConstraintPositionTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/path_constraint_position_timeline.h b/spine-c/src/generated/path_constraint_position_timeline.h index 77110bfc3..f91a2961f 100644 --- a/spine-c/src/generated/path_constraint_position_timeline.h +++ b/spine-c/src/generated/path_constraint_position_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_path_constraint_position_timeline_dispose(spine_path_cons SPINE_C_API spine_rtti spine_path_constraint_position_timeline_get_rtti(spine_path_constraint_position_timeline self); SPINE_C_API void spine_path_constraint_position_timeline_apply(spine_path_constraint_position_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_path_constraint_position_timeline_get_constraint_index(spine_path_constraint_position_timeline self); SPINE_C_API void spine_path_constraint_position_timeline_set_constraint_index(spine_path_constraint_position_timeline self, int inValue); diff --git a/spine-c/src/generated/path_constraint_spacing_timeline.cpp b/spine-c/src/generated/path_constraint_spacing_timeline.cpp index eb23736b8..1ebabe035 100644 --- a/spine-c/src/generated/path_constraint_spacing_timeline.cpp +++ b/spine-c/src/generated/path_constraint_spacing_timeline.cpp @@ -17,8 +17,8 @@ spine_rtti spine_path_constraint_spacing_timeline_get_rtti(spine_path_constraint } void spine_path_constraint_spacing_timeline_apply(spine_path_constraint_spacing_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose) { + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose) { PathConstraintSpacingTimeline *_self = (PathConstraintSpacingTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/path_constraint_spacing_timeline.h b/spine-c/src/generated/path_constraint_spacing_timeline.h index 12273540a..ad3c57cbc 100644 --- a/spine-c/src/generated/path_constraint_spacing_timeline.h +++ b/spine-c/src/generated/path_constraint_spacing_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_path_constraint_spacing_timeline_dispose(spine_path_const SPINE_C_API spine_rtti spine_path_constraint_spacing_timeline_get_rtti(spine_path_constraint_spacing_timeline self); SPINE_C_API void spine_path_constraint_spacing_timeline_apply(spine_path_constraint_spacing_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_path_constraint_spacing_timeline_get_constraint_index(spine_path_constraint_spacing_timeline self); SPINE_C_API void spine_path_constraint_spacing_timeline_set_constraint_index(spine_path_constraint_spacing_timeline self, int inValue); diff --git a/spine-c/src/generated/physics_constraint_damping_timeline.cpp b/spine-c/src/generated/physics_constraint_damping_timeline.cpp index 2de0b9279..3f786047e 100644 --- a/spine-c/src/generated/physics_constraint_damping_timeline.cpp +++ b/spine-c/src/generated/physics_constraint_damping_timeline.cpp @@ -19,7 +19,7 @@ spine_rtti spine_physics_constraint_damping_timeline_get_rtti(spine_physics_cons } void spine_physics_constraint_damping_timeline_apply(spine_physics_constraint_damping_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { PhysicsConstraintTimeline *_self = (PhysicsConstraintTimeline *) (PhysicsConstraintDampingTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/physics_constraint_damping_timeline.h b/spine-c/src/generated/physics_constraint_damping_timeline.h index 4ff8e3512..2b7f4abd7 100644 --- a/spine-c/src/generated/physics_constraint_damping_timeline.h +++ b/spine-c/src/generated/physics_constraint_damping_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_physics_constraint_damping_timeline_dispose(spine_physics SPINE_C_API spine_rtti spine_physics_constraint_damping_timeline_get_rtti(spine_physics_constraint_damping_timeline self); SPINE_C_API void spine_physics_constraint_damping_timeline_apply(spine_physics_constraint_damping_timeline self, spine_skeleton skeleton, - float lastTime, float time, spine_array_event pEvents, float alpha, + float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_physics_constraint_damping_timeline_get_constraint_index(spine_physics_constraint_damping_timeline self); SPINE_C_API void spine_physics_constraint_damping_timeline_set_constraint_index(spine_physics_constraint_damping_timeline self, int inValue); diff --git a/spine-c/src/generated/physics_constraint_gravity_timeline.cpp b/spine-c/src/generated/physics_constraint_gravity_timeline.cpp index cbed131e7..8c6cc75e1 100644 --- a/spine-c/src/generated/physics_constraint_gravity_timeline.cpp +++ b/spine-c/src/generated/physics_constraint_gravity_timeline.cpp @@ -19,7 +19,7 @@ spine_rtti spine_physics_constraint_gravity_timeline_get_rtti(spine_physics_cons } void spine_physics_constraint_gravity_timeline_apply(spine_physics_constraint_gravity_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { PhysicsConstraintTimeline *_self = (PhysicsConstraintTimeline *) (PhysicsConstraintGravityTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/physics_constraint_gravity_timeline.h b/spine-c/src/generated/physics_constraint_gravity_timeline.h index 8a37135bc..f4cf782a5 100644 --- a/spine-c/src/generated/physics_constraint_gravity_timeline.h +++ b/spine-c/src/generated/physics_constraint_gravity_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_physics_constraint_gravity_timeline_dispose(spine_physics SPINE_C_API spine_rtti spine_physics_constraint_gravity_timeline_get_rtti(spine_physics_constraint_gravity_timeline self); SPINE_C_API void spine_physics_constraint_gravity_timeline_apply(spine_physics_constraint_gravity_timeline self, spine_skeleton skeleton, - float lastTime, float time, spine_array_event pEvents, float alpha, + float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_physics_constraint_gravity_timeline_get_constraint_index(spine_physics_constraint_gravity_timeline self); SPINE_C_API void spine_physics_constraint_gravity_timeline_set_constraint_index(spine_physics_constraint_gravity_timeline self, int inValue); diff --git a/spine-c/src/generated/physics_constraint_inertia_timeline.cpp b/spine-c/src/generated/physics_constraint_inertia_timeline.cpp index 1dfd6177f..ca6e3433f 100644 --- a/spine-c/src/generated/physics_constraint_inertia_timeline.cpp +++ b/spine-c/src/generated/physics_constraint_inertia_timeline.cpp @@ -19,7 +19,7 @@ spine_rtti spine_physics_constraint_inertia_timeline_get_rtti(spine_physics_cons } void spine_physics_constraint_inertia_timeline_apply(spine_physics_constraint_inertia_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { PhysicsConstraintTimeline *_self = (PhysicsConstraintTimeline *) (PhysicsConstraintInertiaTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/physics_constraint_inertia_timeline.h b/spine-c/src/generated/physics_constraint_inertia_timeline.h index 5257ff43a..e2dd2ef65 100644 --- a/spine-c/src/generated/physics_constraint_inertia_timeline.h +++ b/spine-c/src/generated/physics_constraint_inertia_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_physics_constraint_inertia_timeline_dispose(spine_physics SPINE_C_API spine_rtti spine_physics_constraint_inertia_timeline_get_rtti(spine_physics_constraint_inertia_timeline self); SPINE_C_API void spine_physics_constraint_inertia_timeline_apply(spine_physics_constraint_inertia_timeline self, spine_skeleton skeleton, - float lastTime, float time, spine_array_event pEvents, float alpha, + float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_physics_constraint_inertia_timeline_get_constraint_index(spine_physics_constraint_inertia_timeline self); SPINE_C_API void spine_physics_constraint_inertia_timeline_set_constraint_index(spine_physics_constraint_inertia_timeline self, int inValue); diff --git a/spine-c/src/generated/physics_constraint_mass_timeline.cpp b/spine-c/src/generated/physics_constraint_mass_timeline.cpp index 5ca0ac4cc..a08fe4b15 100644 --- a/spine-c/src/generated/physics_constraint_mass_timeline.cpp +++ b/spine-c/src/generated/physics_constraint_mass_timeline.cpp @@ -19,8 +19,8 @@ spine_rtti spine_physics_constraint_mass_timeline_get_rtti(spine_physics_constra } void spine_physics_constraint_mass_timeline_apply(spine_physics_constraint_mass_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose) { + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose) { PhysicsConstraintTimeline *_self = (PhysicsConstraintTimeline *) (PhysicsConstraintMassTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/physics_constraint_mass_timeline.h b/spine-c/src/generated/physics_constraint_mass_timeline.h index c38ea9e64..ea1048e29 100644 --- a/spine-c/src/generated/physics_constraint_mass_timeline.h +++ b/spine-c/src/generated/physics_constraint_mass_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_physics_constraint_mass_timeline_dispose(spine_physics_co SPINE_C_API spine_rtti spine_physics_constraint_mass_timeline_get_rtti(spine_physics_constraint_mass_timeline self); SPINE_C_API void spine_physics_constraint_mass_timeline_apply(spine_physics_constraint_mass_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_physics_constraint_mass_timeline_get_constraint_index(spine_physics_constraint_mass_timeline self); SPINE_C_API void spine_physics_constraint_mass_timeline_set_constraint_index(spine_physics_constraint_mass_timeline self, int inValue); diff --git a/spine-c/src/generated/physics_constraint_mix_timeline.cpp b/spine-c/src/generated/physics_constraint_mix_timeline.cpp index bf9b2533f..f6e0bcf9a 100644 --- a/spine-c/src/generated/physics_constraint_mix_timeline.cpp +++ b/spine-c/src/generated/physics_constraint_mix_timeline.cpp @@ -19,8 +19,8 @@ spine_rtti spine_physics_constraint_mix_timeline_get_rtti(spine_physics_constrai } void spine_physics_constraint_mix_timeline_apply(spine_physics_constraint_mix_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose) { + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose) { PhysicsConstraintTimeline *_self = (PhysicsConstraintTimeline *) (PhysicsConstraintMixTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/physics_constraint_mix_timeline.h b/spine-c/src/generated/physics_constraint_mix_timeline.h index 374a820cb..26c9e329d 100644 --- a/spine-c/src/generated/physics_constraint_mix_timeline.h +++ b/spine-c/src/generated/physics_constraint_mix_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_physics_constraint_mix_timeline_dispose(spine_physics_con SPINE_C_API spine_rtti spine_physics_constraint_mix_timeline_get_rtti(spine_physics_constraint_mix_timeline self); SPINE_C_API void spine_physics_constraint_mix_timeline_apply(spine_physics_constraint_mix_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_physics_constraint_mix_timeline_get_constraint_index(spine_physics_constraint_mix_timeline self); SPINE_C_API void spine_physics_constraint_mix_timeline_set_constraint_index(spine_physics_constraint_mix_timeline self, int inValue); diff --git a/spine-c/src/generated/physics_constraint_reset_timeline.cpp b/spine-c/src/generated/physics_constraint_reset_timeline.cpp index f610cd1cc..7f51e16bd 100644 --- a/spine-c/src/generated/physics_constraint_reset_timeline.cpp +++ b/spine-c/src/generated/physics_constraint_reset_timeline.cpp @@ -17,8 +17,8 @@ spine_rtti spine_physics_constraint_reset_timeline_get_rtti(spine_physics_constr } void spine_physics_constraint_reset_timeline_apply(spine_physics_constraint_reset_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose) { + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose) { PhysicsConstraintResetTimeline *_self = (PhysicsConstraintResetTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/physics_constraint_reset_timeline.h b/spine-c/src/generated/physics_constraint_reset_timeline.h index b108fcd8d..44e32e21d 100644 --- a/spine-c/src/generated/physics_constraint_reset_timeline.h +++ b/spine-c/src/generated/physics_constraint_reset_timeline.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_physics_constraint_reset_timeline_dispose(spine_physics_c SPINE_C_API spine_rtti spine_physics_constraint_reset_timeline_get_rtti(spine_physics_constraint_reset_timeline self); SPINE_C_API void spine_physics_constraint_reset_timeline_apply(spine_physics_constraint_reset_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_physics_constraint_reset_timeline_get_frame_count(spine_physics_constraint_reset_timeline self); SPINE_C_API int spine_physics_constraint_reset_timeline_get_constraint_index(spine_physics_constraint_reset_timeline self); diff --git a/spine-c/src/generated/physics_constraint_strength_timeline.cpp b/spine-c/src/generated/physics_constraint_strength_timeline.cpp index abb6ae805..1621dead0 100644 --- a/spine-c/src/generated/physics_constraint_strength_timeline.cpp +++ b/spine-c/src/generated/physics_constraint_strength_timeline.cpp @@ -19,7 +19,7 @@ spine_rtti spine_physics_constraint_strength_timeline_get_rtti(spine_physics_con } void spine_physics_constraint_strength_timeline_apply(spine_physics_constraint_strength_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { PhysicsConstraintTimeline *_self = (PhysicsConstraintTimeline *) (PhysicsConstraintStrengthTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/physics_constraint_strength_timeline.h b/spine-c/src/generated/physics_constraint_strength_timeline.h index 6a9ff73a1..505ed6d0a 100644 --- a/spine-c/src/generated/physics_constraint_strength_timeline.h +++ b/spine-c/src/generated/physics_constraint_strength_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_physics_constraint_strength_timeline_dispose(spine_physic SPINE_C_API spine_rtti spine_physics_constraint_strength_timeline_get_rtti(spine_physics_constraint_strength_timeline self); SPINE_C_API void spine_physics_constraint_strength_timeline_apply(spine_physics_constraint_strength_timeline self, spine_skeleton skeleton, - float lastTime, float time, spine_array_event pEvents, float alpha, + float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_physics_constraint_strength_timeline_get_constraint_index(spine_physics_constraint_strength_timeline self); SPINE_C_API void spine_physics_constraint_strength_timeline_set_constraint_index(spine_physics_constraint_strength_timeline self, int inValue); diff --git a/spine-c/src/generated/physics_constraint_timeline.cpp b/spine-c/src/generated/physics_constraint_timeline.cpp index fcb34a75a..b3f5fa50f 100644 --- a/spine-c/src/generated/physics_constraint_timeline.cpp +++ b/spine-c/src/generated/physics_constraint_timeline.cpp @@ -13,7 +13,7 @@ spine_rtti spine_physics_constraint_timeline_get_rtti(spine_physics_constraint_t } void spine_physics_constraint_timeline_apply(spine_physics_constraint_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { PhysicsConstraintTimeline *_self = (PhysicsConstraintTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/physics_constraint_timeline.h b/spine-c/src/generated/physics_constraint_timeline.h index a90aa6a55..fd39cde36 100644 --- a/spine-c/src/generated/physics_constraint_timeline.h +++ b/spine-c/src/generated/physics_constraint_timeline.h @@ -13,8 +13,8 @@ SPINE_C_API void spine_physics_constraint_timeline_dispose(spine_physics_constra SPINE_C_API spine_rtti spine_physics_constraint_timeline_get_rtti(spine_physics_constraint_timeline self); SPINE_C_API void spine_physics_constraint_timeline_apply(spine_physics_constraint_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_physics_constraint_timeline_get_constraint_index(spine_physics_constraint_timeline self); SPINE_C_API void spine_physics_constraint_timeline_set_constraint_index(spine_physics_constraint_timeline self, int inValue); SPINE_C_API void spine_physics_constraint_timeline_set_frame(spine_physics_constraint_timeline self, size_t frame, float time, float value); diff --git a/spine-c/src/generated/physics_constraint_wind_timeline.cpp b/spine-c/src/generated/physics_constraint_wind_timeline.cpp index bcccaece9..e4ab9d42f 100644 --- a/spine-c/src/generated/physics_constraint_wind_timeline.cpp +++ b/spine-c/src/generated/physics_constraint_wind_timeline.cpp @@ -19,8 +19,8 @@ spine_rtti spine_physics_constraint_wind_timeline_get_rtti(spine_physics_constra } void spine_physics_constraint_wind_timeline_apply(spine_physics_constraint_wind_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose) { + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose) { PhysicsConstraintTimeline *_self = (PhysicsConstraintTimeline *) (PhysicsConstraintWindTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/physics_constraint_wind_timeline.h b/spine-c/src/generated/physics_constraint_wind_timeline.h index eeb9f0ae8..3044341b0 100644 --- a/spine-c/src/generated/physics_constraint_wind_timeline.h +++ b/spine-c/src/generated/physics_constraint_wind_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_physics_constraint_wind_timeline_dispose(spine_physics_co SPINE_C_API spine_rtti spine_physics_constraint_wind_timeline_get_rtti(spine_physics_constraint_wind_timeline self); SPINE_C_API void spine_physics_constraint_wind_timeline_apply(spine_physics_constraint_wind_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_physics_constraint_wind_timeline_get_constraint_index(spine_physics_constraint_wind_timeline self); SPINE_C_API void spine_physics_constraint_wind_timeline_set_constraint_index(spine_physics_constraint_wind_timeline self, int inValue); diff --git a/spine-c/src/generated/region_attachment.cpp b/spine-c/src/generated/region_attachment.cpp index d7e83a63c..ea2b947f1 100644 --- a/spine-c/src/generated/region_attachment.cpp +++ b/spine-c/src/generated/region_attachment.cpp @@ -21,7 +21,7 @@ void spine_region_attachment_update_region(spine_region_attachment self) { _self->updateRegion(); } -void spine_region_attachment_compute_world_vertices_1(spine_region_attachment self, spine_slot slot, float *worldVertices, size_t offset, +void spine_region_attachment_compute_world_vertices_1(spine_region_attachment self, spine_slot slot, /*@null*/ float *worldVertices, size_t offset, size_t stride) { RegionAttachment *_self = (RegionAttachment *) self; _self->computeWorldVertices(*((Slot *) slot), worldVertices, offset, stride); @@ -118,7 +118,7 @@ void spine_region_attachment_set_path(spine_region_attachment self, const char * _self->setPath(String(inValue)); } -spine_texture_region spine_region_attachment_get_region(spine_region_attachment self) { +/*@null*/ spine_texture_region spine_region_attachment_get_region(spine_region_attachment self) { RegionAttachment *_self = (RegionAttachment *) self; return (spine_texture_region) _self->getRegion(); } @@ -128,12 +128,12 @@ void spine_region_attachment_set_region(spine_region_attachment self, spine_text _self->setRegion(*((TextureRegion *) region)); } -spine_sequence spine_region_attachment_get_sequence(spine_region_attachment self) { +/*@null*/ spine_sequence spine_region_attachment_get_sequence(spine_region_attachment self) { RegionAttachment *_self = (RegionAttachment *) self; return (spine_sequence) _self->getSequence(); } -void spine_region_attachment_set_sequence(spine_region_attachment self, spine_sequence sequence) { +void spine_region_attachment_set_sequence(spine_region_attachment self, /*@null*/ spine_sequence sequence) { RegionAttachment *_self = (RegionAttachment *) self; _self->setSequence((Sequence *) sequence); } diff --git a/spine-c/src/generated/region_attachment.h b/spine-c/src/generated/region_attachment.h index 30b6c4606..86a28e139 100644 --- a/spine-c/src/generated/region_attachment.h +++ b/spine-c/src/generated/region_attachment.h @@ -15,8 +15,8 @@ SPINE_C_API void spine_region_attachment_dispose(spine_region_attachment self); SPINE_C_API spine_rtti spine_region_attachment_get_rtti(spine_region_attachment self); SPINE_C_API void spine_region_attachment_update_region(spine_region_attachment self); -SPINE_C_API void spine_region_attachment_compute_world_vertices_1(spine_region_attachment self, spine_slot slot, float *worldVertices, size_t offset, - size_t stride); +SPINE_C_API void spine_region_attachment_compute_world_vertices_1(spine_region_attachment self, spine_slot slot, /*@null*/ float *worldVertices, + size_t offset, size_t stride); SPINE_C_API void spine_region_attachment_compute_world_vertices_2(spine_region_attachment self, spine_slot slot, spine_array_float worldVertices, size_t offset, size_t stride); SPINE_C_API float spine_region_attachment_get_x(spine_region_attachment self); @@ -36,10 +36,10 @@ SPINE_C_API void spine_region_attachment_set_height(spine_region_attachment self SPINE_C_API spine_color spine_region_attachment_get_color(spine_region_attachment self); SPINE_C_API const char *spine_region_attachment_get_path(spine_region_attachment self); SPINE_C_API void spine_region_attachment_set_path(spine_region_attachment self, const char *inValue); -SPINE_C_API spine_texture_region spine_region_attachment_get_region(spine_region_attachment self); +SPINE_C_API /*@null*/ spine_texture_region spine_region_attachment_get_region(spine_region_attachment self); SPINE_C_API void spine_region_attachment_set_region(spine_region_attachment self, spine_texture_region region); -SPINE_C_API spine_sequence spine_region_attachment_get_sequence(spine_region_attachment self); -SPINE_C_API void spine_region_attachment_set_sequence(spine_region_attachment self, spine_sequence sequence); +SPINE_C_API /*@null*/ spine_sequence spine_region_attachment_get_sequence(spine_region_attachment self); +SPINE_C_API void spine_region_attachment_set_sequence(spine_region_attachment self, /*@null*/ spine_sequence sequence); SPINE_C_API spine_array_float spine_region_attachment_get_offset(spine_region_attachment self); SPINE_C_API spine_array_float spine_region_attachment_get_u_vs(spine_region_attachment self); SPINE_C_API spine_attachment spine_region_attachment_copy(spine_region_attachment self); diff --git a/spine-c/src/generated/render_command.cpp b/spine-c/src/generated/render_command.cpp index 8a6138842..dcd016c3a 100644 --- a/spine-c/src/generated/render_command.cpp +++ b/spine-c/src/generated/render_command.cpp @@ -7,22 +7,22 @@ void spine_render_command_dispose(spine_render_command self) { delete (RenderCommand *) self; } -float *spine_render_command_get_positions(spine_render_command self) { +/*@null*/ float *spine_render_command_get_positions(spine_render_command self) { RenderCommand *_self = (RenderCommand *) self; return _self->positions; } -float *spine_render_command_get_uvs(spine_render_command self) { +/*@null*/ float *spine_render_command_get_uvs(spine_render_command self) { RenderCommand *_self = (RenderCommand *) self; return _self->uvs; } -uint32_t *spine_render_command_get_colors(spine_render_command self) { +/*@null*/ uint32_t *spine_render_command_get_colors(spine_render_command self) { RenderCommand *_self = (RenderCommand *) self; return _self->colors; } -uint32_t *spine_render_command_get_dark_colors(spine_render_command self) { +/*@null*/ uint32_t *spine_render_command_get_dark_colors(spine_render_command self) { RenderCommand *_self = (RenderCommand *) self; return _self->darkColors; } @@ -32,7 +32,7 @@ int32_t spine_render_command_get_num_vertices(spine_render_command self) { return _self->numVertices; } -uint16_t *spine_render_command_get_indices(spine_render_command self) { +/*@null*/ uint16_t *spine_render_command_get_indices(spine_render_command self) { RenderCommand *_self = (RenderCommand *) self; return _self->indices; } @@ -47,12 +47,12 @@ spine_blend_mode spine_render_command_get_blend_mode(spine_render_command self) return (spine_blend_mode) _self->blendMode; } -void *spine_render_command_get_texture(spine_render_command self) { +/*@null*/ void *spine_render_command_get_texture(spine_render_command self) { RenderCommand *_self = (RenderCommand *) self; return _self->texture; } -spine_render_command spine_render_command_get_next(spine_render_command self) { +/*@null*/ spine_render_command spine_render_command_get_next(spine_render_command self) { RenderCommand *_self = (RenderCommand *) self; return (spine_render_command) _self->next; } diff --git a/spine-c/src/generated/render_command.h b/spine-c/src/generated/render_command.h index 1bcf7bdb3..4ac83465c 100644 --- a/spine-c/src/generated/render_command.h +++ b/spine-c/src/generated/render_command.h @@ -11,16 +11,16 @@ extern "C" { SPINE_C_API void spine_render_command_dispose(spine_render_command self); -SPINE_C_API float *spine_render_command_get_positions(spine_render_command self); -SPINE_C_API float *spine_render_command_get_uvs(spine_render_command self); -SPINE_C_API uint32_t *spine_render_command_get_colors(spine_render_command self); -SPINE_C_API uint32_t *spine_render_command_get_dark_colors(spine_render_command self); +SPINE_C_API /*@null*/ float *spine_render_command_get_positions(spine_render_command self); +SPINE_C_API /*@null*/ float *spine_render_command_get_uvs(spine_render_command self); +SPINE_C_API /*@null*/ uint32_t *spine_render_command_get_colors(spine_render_command self); +SPINE_C_API /*@null*/ uint32_t *spine_render_command_get_dark_colors(spine_render_command self); SPINE_C_API int32_t spine_render_command_get_num_vertices(spine_render_command self); -SPINE_C_API uint16_t *spine_render_command_get_indices(spine_render_command self); +SPINE_C_API /*@null*/ uint16_t *spine_render_command_get_indices(spine_render_command self); SPINE_C_API int32_t spine_render_command_get_num_indices(spine_render_command self); SPINE_C_API spine_blend_mode spine_render_command_get_blend_mode(spine_render_command self); -SPINE_C_API void *spine_render_command_get_texture(spine_render_command self); -SPINE_C_API spine_render_command spine_render_command_get_next(spine_render_command self); +SPINE_C_API /*@null*/ void *spine_render_command_get_texture(spine_render_command self); +SPINE_C_API /*@null*/ spine_render_command spine_render_command_get_next(spine_render_command self); #ifdef __cplusplus } diff --git a/spine-c/src/generated/rgb2_timeline.cpp b/spine-c/src/generated/rgb2_timeline.cpp index 743840646..a9bb891fc 100644 --- a/spine-c/src/generated/rgb2_timeline.cpp +++ b/spine-c/src/generated/rgb2_timeline.cpp @@ -21,8 +21,8 @@ void spine_rgb2_timeline_set_frame(spine_rgb2_timeline self, int frame, float ti _self->setFrame(frame, time, r, g, b, r2, g2, b2); } -void spine_rgb2_timeline_apply(spine_rgb2_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, float alpha, - spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_rgb2_timeline_apply(spine_rgb2_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, + float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { SlotCurveTimeline *_self = (SlotCurveTimeline *) (RGB2Timeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/rgb2_timeline.h b/spine-c/src/generated/rgb2_timeline.h index 7869b2408..cbabfbae3 100644 --- a/spine-c/src/generated/rgb2_timeline.h +++ b/spine-c/src/generated/rgb2_timeline.h @@ -16,8 +16,9 @@ SPINE_C_API void spine_rgb2_timeline_dispose(spine_rgb2_timeline self); SPINE_C_API spine_rtti spine_rgb2_timeline_get_rtti(spine_rgb2_timeline self); SPINE_C_API void spine_rgb2_timeline_set_frame(spine_rgb2_timeline self, int frame, float time, float r, float g, float b, float r2, float g2, float b2); -SPINE_C_API void spine_rgb2_timeline_apply(spine_rgb2_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_rgb2_timeline_apply(spine_rgb2_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API int spine_rgb2_timeline_get_slot_index(spine_rgb2_timeline self); SPINE_C_API void spine_rgb2_timeline_set_slot_index(spine_rgb2_timeline self, int inValue); SPINE_C_API void spine_rgb2_timeline_set_linear(spine_rgb2_timeline self, size_t frame); diff --git a/spine-c/src/generated/rgb_timeline.cpp b/spine-c/src/generated/rgb_timeline.cpp index 35a4def12..92cfca117 100644 --- a/spine-c/src/generated/rgb_timeline.cpp +++ b/spine-c/src/generated/rgb_timeline.cpp @@ -21,8 +21,8 @@ void spine_rgb_timeline_set_frame(spine_rgb_timeline self, int frame, float time _self->setFrame(frame, time, r, g, b); } -void spine_rgb_timeline_apply(spine_rgb_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, float alpha, - spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_rgb_timeline_apply(spine_rgb_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, + float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { SlotCurveTimeline *_self = (SlotCurveTimeline *) (RGBTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/rgb_timeline.h b/spine-c/src/generated/rgb_timeline.h index 3d7f92d9f..94a5a795c 100644 --- a/spine-c/src/generated/rgb_timeline.h +++ b/spine-c/src/generated/rgb_timeline.h @@ -15,8 +15,9 @@ SPINE_C_API void spine_rgb_timeline_dispose(spine_rgb_timeline self); SPINE_C_API spine_rtti spine_rgb_timeline_get_rtti(spine_rgb_timeline self); SPINE_C_API void spine_rgb_timeline_set_frame(spine_rgb_timeline self, int frame, float time, float r, float g, float b); -SPINE_C_API void spine_rgb_timeline_apply(spine_rgb_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_rgb_timeline_apply(spine_rgb_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API int spine_rgb_timeline_get_slot_index(spine_rgb_timeline self); SPINE_C_API void spine_rgb_timeline_set_slot_index(spine_rgb_timeline self, int inValue); SPINE_C_API void spine_rgb_timeline_set_linear(spine_rgb_timeline self, size_t frame); diff --git a/spine-c/src/generated/rgba2_timeline.cpp b/spine-c/src/generated/rgba2_timeline.cpp index c8b5754b4..5e9b66058 100644 --- a/spine-c/src/generated/rgba2_timeline.cpp +++ b/spine-c/src/generated/rgba2_timeline.cpp @@ -22,7 +22,7 @@ void spine_rgba2_timeline_set_frame(spine_rgba2_timeline self, int frame, float _self->setFrame(frame, time, r, g, b, a, r2, g2, b2); } -void spine_rgba2_timeline_apply(spine_rgba2_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_rgba2_timeline_apply(spine_rgba2_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { SlotCurveTimeline *_self = (SlotCurveTimeline *) (RGBA2Timeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/rgba2_timeline.h b/spine-c/src/generated/rgba2_timeline.h index ecd05030c..87662b328 100644 --- a/spine-c/src/generated/rgba2_timeline.h +++ b/spine-c/src/generated/rgba2_timeline.h @@ -16,8 +16,9 @@ SPINE_C_API void spine_rgba2_timeline_dispose(spine_rgba2_timeline self); SPINE_C_API spine_rtti spine_rgba2_timeline_get_rtti(spine_rgba2_timeline self); SPINE_C_API void spine_rgba2_timeline_set_frame(spine_rgba2_timeline self, int frame, float time, float r, float g, float b, float a, float r2, float g2, float b2); -SPINE_C_API void spine_rgba2_timeline_apply(spine_rgba2_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_rgba2_timeline_apply(spine_rgba2_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API int spine_rgba2_timeline_get_slot_index(spine_rgba2_timeline self); SPINE_C_API void spine_rgba2_timeline_set_slot_index(spine_rgba2_timeline self, int inValue); SPINE_C_API void spine_rgba2_timeline_set_linear(spine_rgba2_timeline self, size_t frame); diff --git a/spine-c/src/generated/rgba_timeline.cpp b/spine-c/src/generated/rgba_timeline.cpp index 57bc6d06c..2f1a2d55b 100644 --- a/spine-c/src/generated/rgba_timeline.cpp +++ b/spine-c/src/generated/rgba_timeline.cpp @@ -21,8 +21,8 @@ void spine_rgba_timeline_set_frame(spine_rgba_timeline self, int frame, float ti _self->setFrame(frame, time, r, g, b, a); } -void spine_rgba_timeline_apply(spine_rgba_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, float alpha, - spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_rgba_timeline_apply(spine_rgba_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, + float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { SlotCurveTimeline *_self = (SlotCurveTimeline *) (RGBATimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/rgba_timeline.h b/spine-c/src/generated/rgba_timeline.h index 66280842a..1c3f07e70 100644 --- a/spine-c/src/generated/rgba_timeline.h +++ b/spine-c/src/generated/rgba_timeline.h @@ -15,8 +15,9 @@ SPINE_C_API void spine_rgba_timeline_dispose(spine_rgba_timeline self); SPINE_C_API spine_rtti spine_rgba_timeline_get_rtti(spine_rgba_timeline self); SPINE_C_API void spine_rgba_timeline_set_frame(spine_rgba_timeline self, int frame, float time, float r, float g, float b, float a); -SPINE_C_API void spine_rgba_timeline_apply(spine_rgba_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_rgba_timeline_apply(spine_rgba_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API int spine_rgba_timeline_get_slot_index(spine_rgba_timeline self); SPINE_C_API void spine_rgba_timeline_set_slot_index(spine_rgba_timeline self, int inValue); SPINE_C_API void spine_rgba_timeline_set_linear(spine_rgba_timeline self, size_t frame); diff --git a/spine-c/src/generated/rotate_timeline.cpp b/spine-c/src/generated/rotate_timeline.cpp index 01a5044a9..6096ac888 100644 --- a/spine-c/src/generated/rotate_timeline.cpp +++ b/spine-c/src/generated/rotate_timeline.cpp @@ -16,7 +16,7 @@ spine_rtti spine_rotate_timeline_get_rtti(spine_rotate_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_rotate_timeline_apply(spine_rotate_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_rotate_timeline_apply(spine_rotate_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { BoneTimeline1 *_self = (BoneTimeline1 *) (RotateTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/rotate_timeline.h b/spine-c/src/generated/rotate_timeline.h index 5ab29abb1..4e581045c 100644 --- a/spine-c/src/generated/rotate_timeline.h +++ b/spine-c/src/generated/rotate_timeline.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_rotate_timeline_dispose(spine_rotate_timeline self); SPINE_C_API spine_rtti spine_rotate_timeline_get_rtti(spine_rotate_timeline self); SPINE_C_API void spine_rotate_timeline_apply(spine_rotate_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_rotate_timeline_get_bone_index(spine_rotate_timeline self); SPINE_C_API void spine_rotate_timeline_set_bone_index(spine_rotate_timeline self, int inValue); diff --git a/spine-c/src/generated/rtti.cpp b/spine-c/src/generated/rtti.cpp index 130f3f214..cd688e974 100644 --- a/spine-c/src/generated/rtti.cpp +++ b/spine-c/src/generated/rtti.cpp @@ -7,7 +7,7 @@ void spine_rtti_dispose(spine_rtti self) { delete (RTTI *) self; } -const char *spine_rtti_get_class_name(spine_rtti self) { +/*@null*/ const char *spine_rtti_get_class_name(spine_rtti self) { RTTI *_self = (RTTI *) self; return _self->getClassName(); } diff --git a/spine-c/src/generated/rtti.h b/spine-c/src/generated/rtti.h index 663ec00ae..38ed9488a 100644 --- a/spine-c/src/generated/rtti.h +++ b/spine-c/src/generated/rtti.h @@ -11,7 +11,7 @@ extern "C" { SPINE_C_API void spine_rtti_dispose(spine_rtti self); -SPINE_C_API const char *spine_rtti_get_class_name(spine_rtti self); +SPINE_C_API /*@null*/ const char *spine_rtti_get_class_name(spine_rtti self); SPINE_C_API bool spine_rtti_is_exactly(spine_rtti self, spine_rtti rtti); SPINE_C_API bool spine_rtti_instance_of(spine_rtti self, spine_rtti rtti); diff --git a/spine-c/src/generated/scale_timeline.cpp b/spine-c/src/generated/scale_timeline.cpp index 70845a154..97e0d0784 100644 --- a/spine-c/src/generated/scale_timeline.cpp +++ b/spine-c/src/generated/scale_timeline.cpp @@ -16,7 +16,7 @@ spine_rtti spine_scale_timeline_get_rtti(spine_scale_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_scale_timeline_apply(spine_scale_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_scale_timeline_apply(spine_scale_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { BoneTimeline2 *_self = (BoneTimeline2 *) (ScaleTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/scale_timeline.h b/spine-c/src/generated/scale_timeline.h index b978763ff..73b53fb27 100644 --- a/spine-c/src/generated/scale_timeline.h +++ b/spine-c/src/generated/scale_timeline.h @@ -14,8 +14,9 @@ SPINE_C_API spine_scale_timeline spine_scale_timeline_create(size_t frameCount, SPINE_C_API void spine_scale_timeline_dispose(spine_scale_timeline self); SPINE_C_API spine_rtti spine_scale_timeline_get_rtti(spine_scale_timeline self); -SPINE_C_API void spine_scale_timeline_apply(spine_scale_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_scale_timeline_apply(spine_scale_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API int spine_scale_timeline_get_bone_index(spine_scale_timeline self); SPINE_C_API void spine_scale_timeline_set_bone_index(spine_scale_timeline self, int inValue); SPINE_C_API void spine_scale_timeline_set_frame(spine_scale_timeline self, size_t frame, float time, float value1, float value2); diff --git a/spine-c/src/generated/scale_x_timeline.cpp b/spine-c/src/generated/scale_x_timeline.cpp index 9041d3804..baa535130 100644 --- a/spine-c/src/generated/scale_x_timeline.cpp +++ b/spine-c/src/generated/scale_x_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_scale_x_timeline_get_rtti(spine_scale_x_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_scale_x_timeline_apply(spine_scale_x_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_scale_x_timeline_apply(spine_scale_x_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { BoneTimeline1 *_self = (BoneTimeline1 *) (ScaleXTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/scale_x_timeline.h b/spine-c/src/generated/scale_x_timeline.h index 0f29b52c9..a4a4be039 100644 --- a/spine-c/src/generated/scale_x_timeline.h +++ b/spine-c/src/generated/scale_x_timeline.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_scale_x_timeline_dispose(spine_scale_x_timeline self); SPINE_C_API spine_rtti spine_scale_x_timeline_get_rtti(spine_scale_x_timeline self); SPINE_C_API void spine_scale_x_timeline_apply(spine_scale_x_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_scale_x_timeline_get_bone_index(spine_scale_x_timeline self); SPINE_C_API void spine_scale_x_timeline_set_bone_index(spine_scale_x_timeline self, int inValue); diff --git a/spine-c/src/generated/scale_y_timeline.cpp b/spine-c/src/generated/scale_y_timeline.cpp index 8a8fecf68..f22962521 100644 --- a/spine-c/src/generated/scale_y_timeline.cpp +++ b/spine-c/src/generated/scale_y_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_scale_y_timeline_get_rtti(spine_scale_y_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_scale_y_timeline_apply(spine_scale_y_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_scale_y_timeline_apply(spine_scale_y_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { BoneTimeline1 *_self = (BoneTimeline1 *) (ScaleYTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/scale_y_timeline.h b/spine-c/src/generated/scale_y_timeline.h index 07e3980b9..511c36fa4 100644 --- a/spine-c/src/generated/scale_y_timeline.h +++ b/spine-c/src/generated/scale_y_timeline.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_scale_y_timeline_dispose(spine_scale_y_timeline self); SPINE_C_API spine_rtti spine_scale_y_timeline_get_rtti(spine_scale_y_timeline self); SPINE_C_API void spine_scale_y_timeline_apply(spine_scale_y_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_scale_y_timeline_get_bone_index(spine_scale_y_timeline self); SPINE_C_API void spine_scale_y_timeline_set_bone_index(spine_scale_y_timeline self, int inValue); diff --git a/spine-c/src/generated/sequence.cpp b/spine-c/src/generated/sequence.cpp index 61635ad37..a2b6f899a 100644 --- a/spine-c/src/generated/sequence.cpp +++ b/spine-c/src/generated/sequence.cpp @@ -16,7 +16,7 @@ spine_sequence spine_sequence_copy(spine_sequence self) { return (spine_sequence) &_self->copy(); } -void spine_sequence_apply(spine_sequence self, spine_slot_pose slot, spine_attachment attachment) { +void spine_sequence_apply(spine_sequence self, /*@null*/ spine_slot_pose slot, /*@null*/ spine_attachment attachment) { Sequence *_self = (Sequence *) self; _self->apply((SlotPose *) slot, (Attachment *) attachment); } @@ -66,7 +66,7 @@ void spine_sequence_set_setup_index(spine_sequence self, int setupIndex) { _self->setSetupIndex(setupIndex); } -spine_array_texture_region spine_sequence_get_regions(spine_sequence self) { +/*@null*/ spine_array_texture_region spine_sequence_get_regions(spine_sequence self) { Sequence *_self = (Sequence *) self; return (spine_array_texture_region) &_self->getRegions(); } diff --git a/spine-c/src/generated/sequence.h b/spine-c/src/generated/sequence.h index 9de9c208d..fe3abe2c1 100644 --- a/spine-c/src/generated/sequence.h +++ b/spine-c/src/generated/sequence.h @@ -14,7 +14,7 @@ SPINE_C_API spine_sequence spine_sequence_create(int count); SPINE_C_API void spine_sequence_dispose(spine_sequence self); SPINE_C_API spine_sequence spine_sequence_copy(spine_sequence self); -SPINE_C_API void spine_sequence_apply(spine_sequence self, spine_slot_pose slot, spine_attachment attachment); +SPINE_C_API void spine_sequence_apply(spine_sequence self, /*@null*/ spine_slot_pose slot, /*@null*/ spine_attachment attachment); SPINE_C_API const char *spine_sequence_get_path(spine_sequence self, const char *basePath, int index); SPINE_C_API int spine_sequence_get_id(spine_sequence self); SPINE_C_API void spine_sequence_set_id(spine_sequence self, int id); @@ -24,7 +24,7 @@ SPINE_C_API int spine_sequence_get_digits(spine_sequence self); SPINE_C_API void spine_sequence_set_digits(spine_sequence self, int digits); SPINE_C_API int spine_sequence_get_setup_index(spine_sequence self); SPINE_C_API void spine_sequence_set_setup_index(spine_sequence self, int setupIndex); -SPINE_C_API spine_array_texture_region spine_sequence_get_regions(spine_sequence self); +SPINE_C_API /*@null*/ spine_array_texture_region spine_sequence_get_regions(spine_sequence self); #ifdef __cplusplus } diff --git a/spine-c/src/generated/sequence_timeline.cpp b/spine-c/src/generated/sequence_timeline.cpp index 47d9f3492..c2b2bfbf3 100644 --- a/spine-c/src/generated/sequence_timeline.cpp +++ b/spine-c/src/generated/sequence_timeline.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_sequence_timeline spine_sequence_timeline_create(size_t frameCount, int slotIndex, spine_attachment attachment) { +spine_sequence_timeline spine_sequence_timeline_create(size_t frameCount, int slotIndex, /*@null*/ spine_attachment attachment) { return (spine_sequence_timeline) new (__FILE__, __LINE__) SequenceTimeline(frameCount, slotIndex, (Attachment *) attachment); } @@ -16,8 +16,9 @@ spine_rtti spine_sequence_timeline_get_rtti(spine_sequence_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_sequence_timeline_apply(spine_sequence_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_sequence_timeline_apply(spine_sequence_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { SequenceTimeline *_self = (SequenceTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/sequence_timeline.h b/spine-c/src/generated/sequence_timeline.h index 3a87cc158..8a4245065 100644 --- a/spine-c/src/generated/sequence_timeline.h +++ b/spine-c/src/generated/sequence_timeline.h @@ -9,13 +9,13 @@ extern "C" { #endif -SPINE_C_API spine_sequence_timeline spine_sequence_timeline_create(size_t frameCount, int slotIndex, spine_attachment attachment); +SPINE_C_API spine_sequence_timeline spine_sequence_timeline_create(size_t frameCount, int slotIndex, /*@null*/ spine_attachment attachment); SPINE_C_API void spine_sequence_timeline_dispose(spine_sequence_timeline self); SPINE_C_API spine_rtti spine_sequence_timeline_get_rtti(spine_sequence_timeline self); SPINE_C_API void spine_sequence_timeline_apply(spine_sequence_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API void spine_sequence_timeline_set_frame(spine_sequence_timeline self, int frame, float time, spine_sequence_mode mode, int index, float delay); diff --git a/spine-c/src/generated/shear_timeline.cpp b/spine-c/src/generated/shear_timeline.cpp index 9afe73ce6..7fcda884b 100644 --- a/spine-c/src/generated/shear_timeline.cpp +++ b/spine-c/src/generated/shear_timeline.cpp @@ -16,7 +16,7 @@ spine_rtti spine_shear_timeline_get_rtti(spine_shear_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_shear_timeline_apply(spine_shear_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_shear_timeline_apply(spine_shear_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { BoneTimeline2 *_self = (BoneTimeline2 *) (ShearTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/shear_timeline.h b/spine-c/src/generated/shear_timeline.h index 942276dfd..65125aa22 100644 --- a/spine-c/src/generated/shear_timeline.h +++ b/spine-c/src/generated/shear_timeline.h @@ -14,8 +14,9 @@ SPINE_C_API spine_shear_timeline spine_shear_timeline_create(size_t frameCount, SPINE_C_API void spine_shear_timeline_dispose(spine_shear_timeline self); SPINE_C_API spine_rtti spine_shear_timeline_get_rtti(spine_shear_timeline self); -SPINE_C_API void spine_shear_timeline_apply(spine_shear_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); +SPINE_C_API void spine_shear_timeline_apply(spine_shear_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose); SPINE_C_API int spine_shear_timeline_get_bone_index(spine_shear_timeline self); SPINE_C_API void spine_shear_timeline_set_bone_index(spine_shear_timeline self, int inValue); SPINE_C_API void spine_shear_timeline_set_frame(spine_shear_timeline self, size_t frame, float time, float value1, float value2); diff --git a/spine-c/src/generated/shear_x_timeline.cpp b/spine-c/src/generated/shear_x_timeline.cpp index b8a538818..c214265f1 100644 --- a/spine-c/src/generated/shear_x_timeline.cpp +++ b/spine-c/src/generated/shear_x_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_shear_x_timeline_get_rtti(spine_shear_x_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_shear_x_timeline_apply(spine_shear_x_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_shear_x_timeline_apply(spine_shear_x_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { BoneTimeline1 *_self = (BoneTimeline1 *) (ShearXTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/shear_x_timeline.h b/spine-c/src/generated/shear_x_timeline.h index bf411f78c..16fd1bccc 100644 --- a/spine-c/src/generated/shear_x_timeline.h +++ b/spine-c/src/generated/shear_x_timeline.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_shear_x_timeline_dispose(spine_shear_x_timeline self); SPINE_C_API spine_rtti spine_shear_x_timeline_get_rtti(spine_shear_x_timeline self); SPINE_C_API void spine_shear_x_timeline_apply(spine_shear_x_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_shear_x_timeline_get_bone_index(spine_shear_x_timeline self); SPINE_C_API void spine_shear_x_timeline_set_bone_index(spine_shear_x_timeline self, int inValue); diff --git a/spine-c/src/generated/shear_y_timeline.cpp b/spine-c/src/generated/shear_y_timeline.cpp index 377fd6535..c526877fc 100644 --- a/spine-c/src/generated/shear_y_timeline.cpp +++ b/spine-c/src/generated/shear_y_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_shear_y_timeline_get_rtti(spine_shear_y_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_shear_y_timeline_apply(spine_shear_y_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_shear_y_timeline_apply(spine_shear_y_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { BoneTimeline1 *_self = (BoneTimeline1 *) (ShearYTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/shear_y_timeline.h b/spine-c/src/generated/shear_y_timeline.h index 3d5d2b3e9..2120e1d41 100644 --- a/spine-c/src/generated/shear_y_timeline.h +++ b/spine-c/src/generated/shear_y_timeline.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_shear_y_timeline_dispose(spine_shear_y_timeline self); SPINE_C_API spine_rtti spine_shear_y_timeline_get_rtti(spine_shear_y_timeline self); SPINE_C_API void spine_shear_y_timeline_apply(spine_shear_y_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_shear_y_timeline_get_bone_index(spine_shear_y_timeline self); SPINE_C_API void spine_shear_y_timeline_set_bone_index(spine_shear_y_timeline self, int inValue); diff --git a/spine-c/src/generated/skeleton.cpp b/spine-c/src/generated/skeleton.cpp index de04e654e..9db49aad7 100644 --- a/spine-c/src/generated/skeleton.cpp +++ b/spine-c/src/generated/skeleton.cpp @@ -26,12 +26,12 @@ void spine_skeleton_constrained(spine_skeleton self, spine_posed object) { _self->constrained(*((Posed *) object)); } -void spine_skeleton_sort_bone(spine_skeleton self, spine_bone bone) { +void spine_skeleton_sort_bone(spine_skeleton self, /*@null*/ spine_bone bone) { Skeleton *_self = (Skeleton *) self; _self->sortBone((Bone *) bone); } -void spine_skeleton_sort_reset(spine_array_bone bones) { +void spine_skeleton_sort_reset(/*@null*/ spine_array_bone bones) { Skeleton::sortReset(*((Array *) bones)); } @@ -60,42 +60,42 @@ spine_skeleton_data spine_skeleton_get_data(spine_skeleton self) { return (spine_skeleton_data) &_self->getData(); } -spine_array_bone spine_skeleton_get_bones(spine_skeleton self) { +/*@null*/ spine_array_bone spine_skeleton_get_bones(spine_skeleton self) { Skeleton *_self = (Skeleton *) self; return (spine_array_bone) &_self->getBones(); } -spine_array_update spine_skeleton_get_update_cache(spine_skeleton self) { +/*@null*/ spine_array_update spine_skeleton_get_update_cache(spine_skeleton self) { Skeleton *_self = (Skeleton *) self; return (spine_array_update) &_self->getUpdateCache(); } -spine_bone spine_skeleton_get_root_bone(spine_skeleton self) { +/*@null*/ spine_bone spine_skeleton_get_root_bone(spine_skeleton self) { Skeleton *_self = (Skeleton *) self; return (spine_bone) _self->getRootBone(); } -spine_bone spine_skeleton_find_bone(spine_skeleton self, const char *boneName) { +/*@null*/ spine_bone spine_skeleton_find_bone(spine_skeleton self, const char *boneName) { Skeleton *_self = (Skeleton *) self; return (spine_bone) _self->findBone(String(boneName)); } -spine_array_slot spine_skeleton_get_slots(spine_skeleton self) { +/*@null*/ spine_array_slot spine_skeleton_get_slots(spine_skeleton self) { Skeleton *_self = (Skeleton *) self; return (spine_array_slot) &_self->getSlots(); } -spine_slot spine_skeleton_find_slot(spine_skeleton self, const char *slotName) { +/*@null*/ spine_slot spine_skeleton_find_slot(spine_skeleton self, const char *slotName) { Skeleton *_self = (Skeleton *) self; return (spine_slot) _self->findSlot(String(slotName)); } -spine_array_slot spine_skeleton_get_draw_order(spine_skeleton self) { +/*@null*/ spine_array_slot spine_skeleton_get_draw_order(spine_skeleton self) { Skeleton *_self = (Skeleton *) self; return (spine_array_slot) &_self->getDrawOrder(); } -spine_skin spine_skeleton_get_skin(spine_skeleton self) { +/*@null*/ spine_skin spine_skeleton_get_skin(spine_skeleton self) { Skeleton *_self = (Skeleton *) self; return (spine_skin) _self->getSkin(); } @@ -105,17 +105,17 @@ void spine_skeleton_set_skin_1(spine_skeleton self, const char *skinName) { _self->setSkin(String(skinName)); } -void spine_skeleton_set_skin_2(spine_skeleton self, spine_skin newSkin) { +void spine_skeleton_set_skin_2(spine_skeleton self, /*@null*/ spine_skin newSkin) { Skeleton *_self = (Skeleton *) self; _self->setSkin((Skin *) newSkin); } -spine_attachment spine_skeleton_get_attachment_1(spine_skeleton self, const char *slotName, const char *attachmentName) { +/*@null*/ spine_attachment spine_skeleton_get_attachment_1(spine_skeleton self, const char *slotName, const char *attachmentName) { Skeleton *_self = (Skeleton *) self; return (spine_attachment) _self->getAttachment(String(slotName), String(attachmentName)); } -spine_attachment spine_skeleton_get_attachment_2(spine_skeleton self, int slotIndex, const char *attachmentName) { +/*@null*/ spine_attachment spine_skeleton_get_attachment_2(spine_skeleton self, int slotIndex, const char *attachmentName) { Skeleton *_self = (Skeleton *) self; return (spine_attachment) _self->getAttachment(slotIndex, String(attachmentName)); } @@ -125,12 +125,12 @@ void spine_skeleton_set_attachment(spine_skeleton self, const char *slotName, co _self->setAttachment(String(slotName), String(attachmentName)); } -spine_array_constraint spine_skeleton_get_constraints(spine_skeleton self) { +/*@null*/ spine_array_constraint spine_skeleton_get_constraints(spine_skeleton self) { Skeleton *_self = (Skeleton *) self; return (spine_array_constraint) &_self->getConstraints(); } -spine_array_physics_constraint spine_skeleton_get_physics_constraints(spine_skeleton self) { +/*@null*/ spine_array_physics_constraint spine_skeleton_get_physics_constraints(spine_skeleton self) { Skeleton *_self = (Skeleton *) self; return (spine_array_physics_constraint) &_self->getPhysicsConstraints(); } @@ -142,7 +142,7 @@ void spine_skeleton_get_bounds_1(spine_skeleton self, float *outX, float *outY, } void spine_skeleton_get_bounds_2(spine_skeleton self, float *outX, float *outY, float *outWidth, float *outHeight, spine_array_float outVertexBuffer, - spine_skeleton_clipping clipper) { + /*@null*/ spine_skeleton_clipping clipper) { Skeleton *_self = (Skeleton *) self; _self->getBounds(*outX, *outY, *outWidth, *outHeight, *((Array *) outVertexBuffer), (SkeletonClipping *) clipper); } diff --git a/spine-c/src/generated/skeleton.h b/spine-c/src/generated/skeleton.h index ff57d10eb..d65d16eb5 100644 --- a/spine-c/src/generated/skeleton.h +++ b/spine-c/src/generated/skeleton.h @@ -16,32 +16,32 @@ SPINE_C_API void spine_skeleton_dispose(spine_skeleton self); SPINE_C_API void spine_skeleton_update_cache(spine_skeleton self); SPINE_C_API void spine_skeleton_print_update_cache(spine_skeleton self); SPINE_C_API void spine_skeleton_constrained(spine_skeleton self, spine_posed object); -SPINE_C_API void spine_skeleton_sort_bone(spine_skeleton self, spine_bone bone); -SPINE_C_API void spine_skeleton_sort_reset(spine_array_bone bones); +SPINE_C_API void spine_skeleton_sort_bone(spine_skeleton self, /*@null*/ spine_bone bone); +SPINE_C_API void spine_skeleton_sort_reset(/*@null*/ spine_array_bone bones); SPINE_C_API void spine_skeleton_update_world_transform(spine_skeleton self, spine_physics physics); SPINE_C_API void spine_skeleton_setup_pose(spine_skeleton self); SPINE_C_API void spine_skeleton_setup_pose_bones(spine_skeleton self); SPINE_C_API void spine_skeleton_setup_pose_slots(spine_skeleton self); SPINE_C_API spine_skeleton_data spine_skeleton_get_data(spine_skeleton self); -SPINE_C_API spine_array_bone spine_skeleton_get_bones(spine_skeleton self); -SPINE_C_API spine_array_update spine_skeleton_get_update_cache(spine_skeleton self); -SPINE_C_API spine_bone spine_skeleton_get_root_bone(spine_skeleton self); -SPINE_C_API spine_bone spine_skeleton_find_bone(spine_skeleton self, const char *boneName); -SPINE_C_API spine_array_slot spine_skeleton_get_slots(spine_skeleton self); -SPINE_C_API spine_slot spine_skeleton_find_slot(spine_skeleton self, const char *slotName); -SPINE_C_API spine_array_slot spine_skeleton_get_draw_order(spine_skeleton self); -SPINE_C_API spine_skin spine_skeleton_get_skin(spine_skeleton self); +SPINE_C_API /*@null*/ spine_array_bone spine_skeleton_get_bones(spine_skeleton self); +SPINE_C_API /*@null*/ spine_array_update spine_skeleton_get_update_cache(spine_skeleton self); +SPINE_C_API /*@null*/ spine_bone spine_skeleton_get_root_bone(spine_skeleton self); +SPINE_C_API /*@null*/ spine_bone spine_skeleton_find_bone(spine_skeleton self, const char *boneName); +SPINE_C_API /*@null*/ spine_array_slot spine_skeleton_get_slots(spine_skeleton self); +SPINE_C_API /*@null*/ spine_slot spine_skeleton_find_slot(spine_skeleton self, const char *slotName); +SPINE_C_API /*@null*/ spine_array_slot spine_skeleton_get_draw_order(spine_skeleton self); +SPINE_C_API /*@null*/ spine_skin spine_skeleton_get_skin(spine_skeleton self); SPINE_C_API void spine_skeleton_set_skin_1(spine_skeleton self, const char *skinName); -SPINE_C_API void spine_skeleton_set_skin_2(spine_skeleton self, spine_skin newSkin); -SPINE_C_API spine_attachment spine_skeleton_get_attachment_1(spine_skeleton self, const char *slotName, const char *attachmentName); -SPINE_C_API spine_attachment spine_skeleton_get_attachment_2(spine_skeleton self, int slotIndex, const char *attachmentName); +SPINE_C_API void spine_skeleton_set_skin_2(spine_skeleton self, /*@null*/ spine_skin newSkin); +SPINE_C_API /*@null*/ spine_attachment spine_skeleton_get_attachment_1(spine_skeleton self, const char *slotName, const char *attachmentName); +SPINE_C_API /*@null*/ spine_attachment spine_skeleton_get_attachment_2(spine_skeleton self, int slotIndex, const char *attachmentName); SPINE_C_API void spine_skeleton_set_attachment(spine_skeleton self, const char *slotName, const char *attachmentName); -SPINE_C_API spine_array_constraint spine_skeleton_get_constraints(spine_skeleton self); -SPINE_C_API spine_array_physics_constraint spine_skeleton_get_physics_constraints(spine_skeleton self); +SPINE_C_API /*@null*/ spine_array_constraint spine_skeleton_get_constraints(spine_skeleton self); +SPINE_C_API /*@null*/ spine_array_physics_constraint spine_skeleton_get_physics_constraints(spine_skeleton self); SPINE_C_API void spine_skeleton_get_bounds_1(spine_skeleton self, float *outX, float *outY, float *outWidth, float *outHeight, spine_array_float outVertexBuffer); SPINE_C_API void spine_skeleton_get_bounds_2(spine_skeleton self, float *outX, float *outY, float *outWidth, float *outHeight, - spine_array_float outVertexBuffer, spine_skeleton_clipping clipper); + spine_array_float outVertexBuffer, /*@null*/ spine_skeleton_clipping clipper); SPINE_C_API spine_color spine_skeleton_get_color(spine_skeleton self); SPINE_C_API void spine_skeleton_set_color_1(spine_skeleton self, spine_color color); SPINE_C_API void spine_skeleton_set_color_2(spine_skeleton self, float r, float g, float b, float a); diff --git a/spine-c/src/generated/skeleton_binary.cpp b/spine-c/src/generated/skeleton_binary.cpp index 4b9aa8ece..79d664e28 100644 --- a/spine-c/src/generated/skeleton_binary.cpp +++ b/spine-c/src/generated/skeleton_binary.cpp @@ -3,11 +3,11 @@ using namespace spine; -spine_skeleton_binary spine_skeleton_binary_create(spine_atlas atlas) { +spine_skeleton_binary spine_skeleton_binary_create(/*@null*/ spine_atlas atlas) { return (spine_skeleton_binary) new (__FILE__, __LINE__) SkeletonBinary((Atlas *) atlas); } -spine_skeleton_binary spine_skeleton_binary_create2(spine_attachment_loader attachmentLoader, bool ownsLoader) { +spine_skeleton_binary spine_skeleton_binary_create2(/*@null*/ spine_attachment_loader attachmentLoader, bool ownsLoader) { return (spine_skeleton_binary) new (__FILE__, __LINE__) SkeletonBinary((AttachmentLoader *) attachmentLoader, ownsLoader); } @@ -15,12 +15,13 @@ void spine_skeleton_binary_dispose(spine_skeleton_binary self) { delete (SkeletonBinary *) self; } -spine_skeleton_data spine_skeleton_binary_read_skeleton_data(spine_skeleton_binary self, const unsigned char *binary, int length) { +/*@null*/ spine_skeleton_data spine_skeleton_binary_read_skeleton_data(spine_skeleton_binary self, /*@null*/ const unsigned char *binary, + int length) { SkeletonBinary *_self = (SkeletonBinary *) self; return (spine_skeleton_data) _self->readSkeletonData(binary, length); } -spine_skeleton_data spine_skeleton_binary_read_skeleton_data_file(spine_skeleton_binary self, const char *path) { +/*@null*/ spine_skeleton_data spine_skeleton_binary_read_skeleton_data_file(spine_skeleton_binary self, const char *path) { SkeletonBinary *_self = (SkeletonBinary *) self; return (spine_skeleton_data) _self->readSkeletonDataFile(String(path)); } diff --git a/spine-c/src/generated/skeleton_binary.h b/spine-c/src/generated/skeleton_binary.h index da3d6d5e1..db1f9b7f1 100644 --- a/spine-c/src/generated/skeleton_binary.h +++ b/spine-c/src/generated/skeleton_binary.h @@ -9,13 +9,14 @@ extern "C" { #endif -SPINE_C_API spine_skeleton_binary spine_skeleton_binary_create(spine_atlas atlas); -SPINE_C_API spine_skeleton_binary spine_skeleton_binary_create2(spine_attachment_loader attachmentLoader, bool ownsLoader); +SPINE_C_API spine_skeleton_binary spine_skeleton_binary_create(/*@null*/ spine_atlas atlas); +SPINE_C_API spine_skeleton_binary spine_skeleton_binary_create2(/*@null*/ spine_attachment_loader attachmentLoader, bool ownsLoader); SPINE_C_API void spine_skeleton_binary_dispose(spine_skeleton_binary self); -SPINE_C_API spine_skeleton_data spine_skeleton_binary_read_skeleton_data(spine_skeleton_binary self, const unsigned char *binary, int length); -SPINE_C_API spine_skeleton_data spine_skeleton_binary_read_skeleton_data_file(spine_skeleton_binary self, const char *path); +SPINE_C_API /*@null*/ spine_skeleton_data spine_skeleton_binary_read_skeleton_data(spine_skeleton_binary self, /*@null*/ const unsigned char *binary, + int length); +SPINE_C_API /*@null*/ spine_skeleton_data spine_skeleton_binary_read_skeleton_data_file(spine_skeleton_binary self, const char *path); SPINE_C_API void spine_skeleton_binary_set_scale(spine_skeleton_binary self, float scale); SPINE_C_API const char *spine_skeleton_binary_get_error(spine_skeleton_binary self); diff --git a/spine-c/src/generated/skeleton_bounds.cpp b/spine-c/src/generated/skeleton_bounds.cpp index bc6572f49..8f7bf0be4 100644 --- a/spine-c/src/generated/skeleton_bounds.cpp +++ b/spine-c/src/generated/skeleton_bounds.cpp @@ -36,12 +36,13 @@ bool spine_skeleton_bounds_contains_point_1(spine_skeleton_bounds self, spine_po return _self->containsPoint(*((Polygon *) polygon), x, y); } -spine_bounding_box_attachment spine_skeleton_bounds_contains_point_2(spine_skeleton_bounds self, float x, float y) { +/*@null*/ spine_bounding_box_attachment spine_skeleton_bounds_contains_point_2(spine_skeleton_bounds self, float x, float y) { SkeletonBounds *_self = (SkeletonBounds *) self; return (spine_bounding_box_attachment) _self->containsPoint(x, y); } -spine_bounding_box_attachment spine_skeleton_bounds_intersects_segment_1(spine_skeleton_bounds self, float x1, float y1, float x2, float y2) { +/*@null*/ spine_bounding_box_attachment spine_skeleton_bounds_intersects_segment_1(spine_skeleton_bounds self, float x1, float y1, float x2, + float y2) { SkeletonBounds *_self = (SkeletonBounds *) self; return (spine_bounding_box_attachment) _self->intersectsSegment(x1, y1, x2, y2); } @@ -51,22 +52,22 @@ bool spine_skeleton_bounds_intersects_segment_2(spine_skeleton_bounds self, spin return _self->intersectsSegment(*((Polygon *) polygon), x1, y1, x2, y2); } -spine_polygon spine_skeleton_bounds_get_polygon(spine_skeleton_bounds self, spine_bounding_box_attachment attachment) { +/*@null*/ spine_polygon spine_skeleton_bounds_get_polygon(spine_skeleton_bounds self, /*@null*/ spine_bounding_box_attachment attachment) { SkeletonBounds *_self = (SkeletonBounds *) self; return (spine_polygon) _self->getPolygon((BoundingBoxAttachment *) attachment); } -spine_bounding_box_attachment spine_skeleton_bounds_get_bounding_box(spine_skeleton_bounds self, spine_polygon polygon) { +/*@null*/ spine_bounding_box_attachment spine_skeleton_bounds_get_bounding_box(spine_skeleton_bounds self, /*@null*/ spine_polygon polygon) { SkeletonBounds *_self = (SkeletonBounds *) self; return (spine_bounding_box_attachment) _self->getBoundingBox((Polygon *) polygon); } -spine_array_polygon spine_skeleton_bounds_get_polygons(spine_skeleton_bounds self) { +/*@null*/ spine_array_polygon spine_skeleton_bounds_get_polygons(spine_skeleton_bounds self) { SkeletonBounds *_self = (SkeletonBounds *) self; return (spine_array_polygon) &_self->getPolygons(); } -spine_array_bounding_box_attachment spine_skeleton_bounds_get_bounding_boxes(spine_skeleton_bounds self) { +/*@null*/ spine_array_bounding_box_attachment spine_skeleton_bounds_get_bounding_boxes(spine_skeleton_bounds self) { SkeletonBounds *_self = (SkeletonBounds *) self; return (spine_array_bounding_box_attachment) &_self->getBoundingBoxes(); } diff --git a/spine-c/src/generated/skeleton_bounds.h b/spine-c/src/generated/skeleton_bounds.h index 0b3b66764..865fa6f6c 100644 --- a/spine-c/src/generated/skeleton_bounds.h +++ b/spine-c/src/generated/skeleton_bounds.h @@ -18,15 +18,16 @@ SPINE_C_API bool spine_skeleton_bounds_aabb_contains_point(spine_skeleton_bounds SPINE_C_API bool spine_skeleton_bounds_aabb_intersects_segment(spine_skeleton_bounds self, float x1, float y1, float x2, float y2); SPINE_C_API bool spine_skeleton_bounds_aabb_intersects_skeleton(spine_skeleton_bounds self, spine_skeleton_bounds bounds); SPINE_C_API bool spine_skeleton_bounds_contains_point_1(spine_skeleton_bounds self, spine_polygon polygon, float x, float y); -SPINE_C_API spine_bounding_box_attachment spine_skeleton_bounds_contains_point_2(spine_skeleton_bounds self, float x, float y); -SPINE_C_API spine_bounding_box_attachment spine_skeleton_bounds_intersects_segment_1(spine_skeleton_bounds self, float x1, float y1, float x2, - float y2); +SPINE_C_API /*@null*/ spine_bounding_box_attachment spine_skeleton_bounds_contains_point_2(spine_skeleton_bounds self, float x, float y); +SPINE_C_API /*@null*/ spine_bounding_box_attachment spine_skeleton_bounds_intersects_segment_1(spine_skeleton_bounds self, float x1, float y1, + float x2, float y2); SPINE_C_API bool spine_skeleton_bounds_intersects_segment_2(spine_skeleton_bounds self, spine_polygon polygon, float x1, float y1, float x2, float y2); -SPINE_C_API spine_polygon spine_skeleton_bounds_get_polygon(spine_skeleton_bounds self, spine_bounding_box_attachment attachment); -SPINE_C_API spine_bounding_box_attachment spine_skeleton_bounds_get_bounding_box(spine_skeleton_bounds self, spine_polygon polygon); -SPINE_C_API spine_array_polygon spine_skeleton_bounds_get_polygons(spine_skeleton_bounds self); -SPINE_C_API spine_array_bounding_box_attachment spine_skeleton_bounds_get_bounding_boxes(spine_skeleton_bounds self); +SPINE_C_API /*@null*/ spine_polygon spine_skeleton_bounds_get_polygon(spine_skeleton_bounds self, /*@null*/ spine_bounding_box_attachment attachment); +SPINE_C_API /*@null*/ spine_bounding_box_attachment spine_skeleton_bounds_get_bounding_box(spine_skeleton_bounds self, + /*@null*/ spine_polygon polygon); +SPINE_C_API /*@null*/ spine_array_polygon spine_skeleton_bounds_get_polygons(spine_skeleton_bounds self); +SPINE_C_API /*@null*/ spine_array_bounding_box_attachment spine_skeleton_bounds_get_bounding_boxes(spine_skeleton_bounds self); SPINE_C_API float spine_skeleton_bounds_get_min_x(spine_skeleton_bounds self); SPINE_C_API float spine_skeleton_bounds_get_min_y(spine_skeleton_bounds self); SPINE_C_API float spine_skeleton_bounds_get_max_x(spine_skeleton_bounds self); diff --git a/spine-c/src/generated/skeleton_clipping.cpp b/spine-c/src/generated/skeleton_clipping.cpp index 38bc16c76..fe6481fb8 100644 --- a/spine-c/src/generated/skeleton_clipping.cpp +++ b/spine-c/src/generated/skeleton_clipping.cpp @@ -11,7 +11,8 @@ void spine_skeleton_clipping_dispose(spine_skeleton_clipping self) { delete (SkeletonClipping *) self; } -size_t spine_skeleton_clipping_clip_start(spine_skeleton_clipping self, spine_skeleton skeleton, spine_slot slot, spine_clipping_attachment clip) { +size_t spine_skeleton_clipping_clip_start(spine_skeleton_clipping self, spine_skeleton skeleton, spine_slot slot, + /*@null*/ spine_clipping_attachment clip) { SkeletonClipping *_self = (SkeletonClipping *) self; return _self->clipStart(*((Skeleton *) skeleton), *((Slot *) slot), (ClippingAttachment *) clip); } @@ -26,13 +27,14 @@ void spine_skeleton_clipping_clip_end_2(spine_skeleton_clipping self) { _self->clipEnd(); } -bool spine_skeleton_clipping_clip_triangles_1(spine_skeleton_clipping self, float *vertices, unsigned short *triangles, size_t trianglesLength) { +bool spine_skeleton_clipping_clip_triangles_1(spine_skeleton_clipping self, /*@null*/ float *vertices, /*@null*/ unsigned short *triangles, + size_t trianglesLength) { SkeletonClipping *_self = (SkeletonClipping *) self; return _self->clipTriangles(vertices, triangles, trianglesLength); } -bool spine_skeleton_clipping_clip_triangles_2(spine_skeleton_clipping self, float *vertices, unsigned short *triangles, size_t trianglesLength, - float *uvs, size_t stride) { +bool spine_skeleton_clipping_clip_triangles_2(spine_skeleton_clipping self, /*@null*/ float *vertices, /*@null*/ unsigned short *triangles, + size_t trianglesLength, /*@null*/ float *uvs, size_t stride) { SkeletonClipping *_self = (SkeletonClipping *) self; return _self->clipTriangles(vertices, triangles, trianglesLength, uvs, stride); } diff --git a/spine-c/src/generated/skeleton_clipping.h b/spine-c/src/generated/skeleton_clipping.h index 3f45b416c..ca359e797 100644 --- a/spine-c/src/generated/skeleton_clipping.h +++ b/spine-c/src/generated/skeleton_clipping.h @@ -14,13 +14,14 @@ SPINE_C_API spine_skeleton_clipping spine_skeleton_clipping_create(void); SPINE_C_API void spine_skeleton_clipping_dispose(spine_skeleton_clipping self); SPINE_C_API size_t spine_skeleton_clipping_clip_start(spine_skeleton_clipping self, spine_skeleton skeleton, spine_slot slot, - spine_clipping_attachment clip); + /*@null*/ spine_clipping_attachment clip); SPINE_C_API void spine_skeleton_clipping_clip_end_1(spine_skeleton_clipping self, spine_slot slot); SPINE_C_API void spine_skeleton_clipping_clip_end_2(spine_skeleton_clipping self); -SPINE_C_API bool spine_skeleton_clipping_clip_triangles_1(spine_skeleton_clipping self, float *vertices, unsigned short *triangles, - size_t trianglesLength); -SPINE_C_API bool spine_skeleton_clipping_clip_triangles_2(spine_skeleton_clipping self, float *vertices, unsigned short *triangles, - size_t trianglesLength, float *uvs, size_t stride); +SPINE_C_API bool spine_skeleton_clipping_clip_triangles_1(spine_skeleton_clipping self, /*@null*/ float *vertices, + /*@null*/ unsigned short *triangles, size_t trianglesLength); +SPINE_C_API bool spine_skeleton_clipping_clip_triangles_2(spine_skeleton_clipping self, /*@null*/ float *vertices, + /*@null*/ unsigned short *triangles, size_t trianglesLength, /*@null*/ float *uvs, + size_t stride); SPINE_C_API bool spine_skeleton_clipping_clip_triangles_3(spine_skeleton_clipping self, spine_array_float vertices, spine_array_unsigned_short triangles, spine_array_float uvs, size_t stride); SPINE_C_API bool spine_skeleton_clipping_is_clipping(spine_skeleton_clipping self); diff --git a/spine-c/src/generated/skeleton_data.cpp b/spine-c/src/generated/skeleton_data.cpp index 74ef67377..77511623a 100644 --- a/spine-c/src/generated/skeleton_data.cpp +++ b/spine-c/src/generated/skeleton_data.cpp @@ -11,27 +11,27 @@ void spine_skeleton_data_dispose(spine_skeleton_data self) { delete (SkeletonData *) self; } -spine_bone_data spine_skeleton_data_find_bone(spine_skeleton_data self, const char *boneName) { +/*@null*/ spine_bone_data spine_skeleton_data_find_bone(spine_skeleton_data self, const char *boneName) { SkeletonData *_self = (SkeletonData *) self; return (spine_bone_data) _self->findBone(String(boneName)); } -spine_slot_data spine_skeleton_data_find_slot(spine_skeleton_data self, const char *slotName) { +/*@null*/ spine_slot_data spine_skeleton_data_find_slot(spine_skeleton_data self, const char *slotName) { SkeletonData *_self = (SkeletonData *) self; return (spine_slot_data) _self->findSlot(String(slotName)); } -spine_skin spine_skeleton_data_find_skin(spine_skeleton_data self, const char *skinName) { +/*@null*/ spine_skin spine_skeleton_data_find_skin(spine_skeleton_data self, const char *skinName) { SkeletonData *_self = (SkeletonData *) self; return (spine_skin) _self->findSkin(String(skinName)); } -spine_event_data spine_skeleton_data_find_event(spine_skeleton_data self, const char *eventDataName) { +/*@null*/ spine_event_data spine_skeleton_data_find_event(spine_skeleton_data self, const char *eventDataName) { SkeletonData *_self = (SkeletonData *) self; return (spine_event_data) _self->findEvent(String(eventDataName)); } -spine_animation spine_skeleton_data_find_animation(spine_skeleton_data self, const char *animationName) { +/*@null*/ spine_animation spine_skeleton_data_find_animation(spine_skeleton_data self, const char *animationName) { SkeletonData *_self = (SkeletonData *) self; return (spine_animation) _self->findAnimation(String(animationName)); } @@ -46,42 +46,42 @@ void spine_skeleton_data_set_name(spine_skeleton_data self, const char *inValue) _self->setName(String(inValue)); } -spine_array_bone_data spine_skeleton_data_get_bones(spine_skeleton_data self) { +/*@null*/ spine_array_bone_data spine_skeleton_data_get_bones(spine_skeleton_data self) { SkeletonData *_self = (SkeletonData *) self; return (spine_array_bone_data) &_self->getBones(); } -spine_array_slot_data spine_skeleton_data_get_slots(spine_skeleton_data self) { +/*@null*/ spine_array_slot_data spine_skeleton_data_get_slots(spine_skeleton_data self) { SkeletonData *_self = (SkeletonData *) self; return (spine_array_slot_data) &_self->getSlots(); } -spine_array_skin spine_skeleton_data_get_skins(spine_skeleton_data self) { +/*@null*/ spine_array_skin spine_skeleton_data_get_skins(spine_skeleton_data self) { SkeletonData *_self = (SkeletonData *) self; return (spine_array_skin) &_self->getSkins(); } -spine_skin spine_skeleton_data_get_default_skin(spine_skeleton_data self) { +/*@null*/ spine_skin spine_skeleton_data_get_default_skin(spine_skeleton_data self) { SkeletonData *_self = (SkeletonData *) self; return (spine_skin) _self->getDefaultSkin(); } -void spine_skeleton_data_set_default_skin(spine_skeleton_data self, spine_skin inValue) { +void spine_skeleton_data_set_default_skin(spine_skeleton_data self, /*@null*/ spine_skin inValue) { SkeletonData *_self = (SkeletonData *) self; _self->setDefaultSkin((Skin *) inValue); } -spine_array_event_data spine_skeleton_data_get_events(spine_skeleton_data self) { +/*@null*/ spine_array_event_data spine_skeleton_data_get_events(spine_skeleton_data self) { SkeletonData *_self = (SkeletonData *) self; return (spine_array_event_data) &_self->getEvents(); } -spine_array_animation spine_skeleton_data_get_animations(spine_skeleton_data self) { +/*@null*/ spine_array_animation spine_skeleton_data_get_animations(spine_skeleton_data self) { SkeletonData *_self = (SkeletonData *) self; return (spine_array_animation) &_self->getAnimations(); } -spine_array_constraint_data spine_skeleton_data_get_constraints(spine_skeleton_data self) { +/*@null*/ spine_array_constraint_data spine_skeleton_data_get_constraints(spine_skeleton_data self) { SkeletonData *_self = (SkeletonData *) self; return (spine_array_constraint_data) &_self->getConstraints(); } diff --git a/spine-c/src/generated/skeleton_data.h b/spine-c/src/generated/skeleton_data.h index c0f53b365..0e122ed3b 100644 --- a/spine-c/src/generated/skeleton_data.h +++ b/spine-c/src/generated/skeleton_data.h @@ -13,21 +13,21 @@ SPINE_C_API spine_skeleton_data spine_skeleton_data_create(void); SPINE_C_API void spine_skeleton_data_dispose(spine_skeleton_data self); -SPINE_C_API spine_bone_data spine_skeleton_data_find_bone(spine_skeleton_data self, const char *boneName); -SPINE_C_API spine_slot_data spine_skeleton_data_find_slot(spine_skeleton_data self, const char *slotName); -SPINE_C_API spine_skin spine_skeleton_data_find_skin(spine_skeleton_data self, const char *skinName); -SPINE_C_API spine_event_data spine_skeleton_data_find_event(spine_skeleton_data self, const char *eventDataName); -SPINE_C_API spine_animation spine_skeleton_data_find_animation(spine_skeleton_data self, const char *animationName); +SPINE_C_API /*@null*/ spine_bone_data spine_skeleton_data_find_bone(spine_skeleton_data self, const char *boneName); +SPINE_C_API /*@null*/ spine_slot_data spine_skeleton_data_find_slot(spine_skeleton_data self, const char *slotName); +SPINE_C_API /*@null*/ spine_skin spine_skeleton_data_find_skin(spine_skeleton_data self, const char *skinName); +SPINE_C_API /*@null*/ spine_event_data spine_skeleton_data_find_event(spine_skeleton_data self, const char *eventDataName); +SPINE_C_API /*@null*/ spine_animation spine_skeleton_data_find_animation(spine_skeleton_data self, const char *animationName); SPINE_C_API const char *spine_skeleton_data_get_name(spine_skeleton_data self); SPINE_C_API void spine_skeleton_data_set_name(spine_skeleton_data self, const char *inValue); -SPINE_C_API spine_array_bone_data spine_skeleton_data_get_bones(spine_skeleton_data self); -SPINE_C_API spine_array_slot_data spine_skeleton_data_get_slots(spine_skeleton_data self); -SPINE_C_API spine_array_skin spine_skeleton_data_get_skins(spine_skeleton_data self); -SPINE_C_API spine_skin spine_skeleton_data_get_default_skin(spine_skeleton_data self); -SPINE_C_API void spine_skeleton_data_set_default_skin(spine_skeleton_data self, spine_skin inValue); -SPINE_C_API spine_array_event_data spine_skeleton_data_get_events(spine_skeleton_data self); -SPINE_C_API spine_array_animation spine_skeleton_data_get_animations(spine_skeleton_data self); -SPINE_C_API spine_array_constraint_data spine_skeleton_data_get_constraints(spine_skeleton_data self); +SPINE_C_API /*@null*/ spine_array_bone_data spine_skeleton_data_get_bones(spine_skeleton_data self); +SPINE_C_API /*@null*/ spine_array_slot_data spine_skeleton_data_get_slots(spine_skeleton_data self); +SPINE_C_API /*@null*/ spine_array_skin spine_skeleton_data_get_skins(spine_skeleton_data self); +SPINE_C_API /*@null*/ spine_skin spine_skeleton_data_get_default_skin(spine_skeleton_data self); +SPINE_C_API void spine_skeleton_data_set_default_skin(spine_skeleton_data self, /*@null*/ spine_skin inValue); +SPINE_C_API /*@null*/ spine_array_event_data spine_skeleton_data_get_events(spine_skeleton_data self); +SPINE_C_API /*@null*/ spine_array_animation spine_skeleton_data_get_animations(spine_skeleton_data self); +SPINE_C_API /*@null*/ spine_array_constraint_data spine_skeleton_data_get_constraints(spine_skeleton_data self); SPINE_C_API float spine_skeleton_data_get_x(spine_skeleton_data self); SPINE_C_API void spine_skeleton_data_set_x(spine_skeleton_data self, float inValue); SPINE_C_API float spine_skeleton_data_get_y(spine_skeleton_data self); diff --git a/spine-c/src/generated/skeleton_json.cpp b/spine-c/src/generated/skeleton_json.cpp index 30928848d..d9d0b961c 100644 --- a/spine-c/src/generated/skeleton_json.cpp +++ b/spine-c/src/generated/skeleton_json.cpp @@ -3,11 +3,11 @@ using namespace spine; -spine_skeleton_json spine_skeleton_json_create(spine_atlas atlas) { +spine_skeleton_json spine_skeleton_json_create(/*@null*/ spine_atlas atlas) { return (spine_skeleton_json) new (__FILE__, __LINE__) SkeletonJson((Atlas *) atlas); } -spine_skeleton_json spine_skeleton_json_create2(spine_attachment_loader attachmentLoader, bool ownsLoader) { +spine_skeleton_json spine_skeleton_json_create2(/*@null*/ spine_attachment_loader attachmentLoader, bool ownsLoader) { return (spine_skeleton_json) new (__FILE__, __LINE__) SkeletonJson((AttachmentLoader *) attachmentLoader, ownsLoader); } @@ -15,12 +15,12 @@ void spine_skeleton_json_dispose(spine_skeleton_json self) { delete (SkeletonJson *) self; } -spine_skeleton_data spine_skeleton_json_read_skeleton_data_file(spine_skeleton_json self, const char *path) { +/*@null*/ spine_skeleton_data spine_skeleton_json_read_skeleton_data_file(spine_skeleton_json self, const char *path) { SkeletonJson *_self = (SkeletonJson *) self; return (spine_skeleton_data) _self->readSkeletonDataFile(String(path)); } -spine_skeleton_data spine_skeleton_json_read_skeleton_data(spine_skeleton_json self, const char *json) { +/*@null*/ spine_skeleton_data spine_skeleton_json_read_skeleton_data(spine_skeleton_json self, /*@null*/ const char *json) { SkeletonJson *_self = (SkeletonJson *) self; return (spine_skeleton_data) _self->readSkeletonData(json); } diff --git a/spine-c/src/generated/skeleton_json.h b/spine-c/src/generated/skeleton_json.h index af4de08e6..46c09db39 100644 --- a/spine-c/src/generated/skeleton_json.h +++ b/spine-c/src/generated/skeleton_json.h @@ -9,13 +9,13 @@ extern "C" { #endif -SPINE_C_API spine_skeleton_json spine_skeleton_json_create(spine_atlas atlas); -SPINE_C_API spine_skeleton_json spine_skeleton_json_create2(spine_attachment_loader attachmentLoader, bool ownsLoader); +SPINE_C_API spine_skeleton_json spine_skeleton_json_create(/*@null*/ spine_atlas atlas); +SPINE_C_API spine_skeleton_json spine_skeleton_json_create2(/*@null*/ spine_attachment_loader attachmentLoader, bool ownsLoader); SPINE_C_API void spine_skeleton_json_dispose(spine_skeleton_json self); -SPINE_C_API spine_skeleton_data spine_skeleton_json_read_skeleton_data_file(spine_skeleton_json self, const char *path); -SPINE_C_API spine_skeleton_data spine_skeleton_json_read_skeleton_data(spine_skeleton_json self, const char *json); +SPINE_C_API /*@null*/ spine_skeleton_data spine_skeleton_json_read_skeleton_data_file(spine_skeleton_json self, const char *path); +SPINE_C_API /*@null*/ spine_skeleton_data spine_skeleton_json_read_skeleton_data(spine_skeleton_json self, /*@null*/ const char *json); SPINE_C_API void spine_skeleton_json_set_scale(spine_skeleton_json self, float scale); SPINE_C_API const char *spine_skeleton_json_get_error(spine_skeleton_json self); diff --git a/spine-c/src/generated/skeleton_renderer.cpp b/spine-c/src/generated/skeleton_renderer.cpp index fc4429c90..74583ab8e 100644 --- a/spine-c/src/generated/skeleton_renderer.cpp +++ b/spine-c/src/generated/skeleton_renderer.cpp @@ -11,7 +11,7 @@ void spine_skeleton_renderer_dispose(spine_skeleton_renderer self) { delete (SkeletonRenderer *) self; } -spine_render_command spine_skeleton_renderer_render(spine_skeleton_renderer self, spine_skeleton skeleton) { +/*@null*/ spine_render_command spine_skeleton_renderer_render(spine_skeleton_renderer self, spine_skeleton skeleton) { SkeletonRenderer *_self = (SkeletonRenderer *) self; return (spine_render_command) _self->render(*((Skeleton *) skeleton)); } diff --git a/spine-c/src/generated/skeleton_renderer.h b/spine-c/src/generated/skeleton_renderer.h index 50cd8981d..ec1718067 100644 --- a/spine-c/src/generated/skeleton_renderer.h +++ b/spine-c/src/generated/skeleton_renderer.h @@ -13,7 +13,7 @@ SPINE_C_API spine_skeleton_renderer spine_skeleton_renderer_create(void); SPINE_C_API void spine_skeleton_renderer_dispose(spine_skeleton_renderer self); -SPINE_C_API spine_render_command spine_skeleton_renderer_render(spine_skeleton_renderer self, spine_skeleton skeleton); +SPINE_C_API /*@null*/ spine_render_command spine_skeleton_renderer_render(spine_skeleton_renderer self, spine_skeleton skeleton); #ifdef __cplusplus } diff --git a/spine-c/src/generated/skin.cpp b/spine-c/src/generated/skin.cpp index 93dd9234b..f2f0f02bf 100644 --- a/spine-c/src/generated/skin.cpp +++ b/spine-c/src/generated/skin.cpp @@ -16,7 +16,7 @@ void spine_skin_set_attachment(spine_skin self, size_t slotIndex, const char *na _self->setAttachment(slotIndex, String(name), *((Attachment *) attachment)); } -spine_attachment spine_skin_get_attachment(spine_skin self, size_t slotIndex, const char *name) { +/*@null*/ spine_attachment spine_skin_get_attachment(spine_skin self, size_t slotIndex, const char *name) { Skin *_self = (Skin *) self; return (spine_attachment) _self->getAttachment(slotIndex, String(name)); } @@ -26,7 +26,7 @@ void spine_skin_remove_attachment(spine_skin self, size_t slotIndex, const char _self->removeAttachment(slotIndex, String(name)); } -void spine_skin_find_attachments_for_slot(spine_skin self, size_t slotIndex, spine_array_attachment attachments) { +void spine_skin_find_attachments_for_slot(spine_skin self, size_t slotIndex, /*@null*/ spine_array_attachment attachments) { Skin *_self = (Skin *) self; _self->findAttachmentsForSlot(slotIndex, *((Array *) attachments)); } @@ -46,12 +46,12 @@ void spine_skin_copy_skin(spine_skin self, spine_skin other) { _self->copySkin(*((Skin *) other)); } -spine_array_bone_data spine_skin_get_bones(spine_skin self) { +/*@null*/ spine_array_bone_data spine_skin_get_bones(spine_skin self) { Skin *_self = (Skin *) self; return (spine_array_bone_data) &_self->getBones(); } -spine_array_constraint_data spine_skin_get_constraints(spine_skin self) { +/*@null*/ spine_array_constraint_data spine_skin_get_constraints(spine_skin self) { Skin *_self = (Skin *) self; return (spine_array_constraint_data) &_self->getConstraints(); } diff --git a/spine-c/src/generated/skin.h b/spine-c/src/generated/skin.h index 36c0c9684..0fcbc2e38 100644 --- a/spine-c/src/generated/skin.h +++ b/spine-c/src/generated/skin.h @@ -14,14 +14,14 @@ SPINE_C_API spine_skin spine_skin_create(const char *name); SPINE_C_API void spine_skin_dispose(spine_skin self); SPINE_C_API void spine_skin_set_attachment(spine_skin self, size_t slotIndex, const char *name, spine_attachment attachment); -SPINE_C_API spine_attachment spine_skin_get_attachment(spine_skin self, size_t slotIndex, const char *name); +SPINE_C_API /*@null*/ spine_attachment spine_skin_get_attachment(spine_skin self, size_t slotIndex, const char *name); SPINE_C_API void spine_skin_remove_attachment(spine_skin self, size_t slotIndex, const char *name); -SPINE_C_API void spine_skin_find_attachments_for_slot(spine_skin self, size_t slotIndex, spine_array_attachment attachments); +SPINE_C_API void spine_skin_find_attachments_for_slot(spine_skin self, size_t slotIndex, /*@null*/ spine_array_attachment attachments); SPINE_C_API const char *spine_skin_get_name(spine_skin self); SPINE_C_API void spine_skin_add_skin(spine_skin self, spine_skin other); SPINE_C_API void spine_skin_copy_skin(spine_skin self, spine_skin other); -SPINE_C_API spine_array_bone_data spine_skin_get_bones(spine_skin self); -SPINE_C_API spine_array_constraint_data spine_skin_get_constraints(spine_skin self); +SPINE_C_API /*@null*/ spine_array_bone_data spine_skin_get_bones(spine_skin self); +SPINE_C_API /*@null*/ spine_array_constraint_data spine_skin_get_constraints(spine_skin self); SPINE_C_API spine_color spine_skin_get_color(spine_skin self); #ifdef __cplusplus diff --git a/spine-c/src/generated/slider_data.cpp b/spine-c/src/generated/slider_data.cpp index 672ec264f..8c6766fd0 100644 --- a/spine-c/src/generated/slider_data.cpp +++ b/spine-c/src/generated/slider_data.cpp @@ -51,22 +51,22 @@ void spine_slider_data_set_loop(spine_slider_data self, bool loop) { _self->setLoop(loop); } -spine_bone_data spine_slider_data_get_bone(spine_slider_data self) { +/*@null*/ spine_bone_data spine_slider_data_get_bone(spine_slider_data self) { SliderData *_self = (SliderData *) self; return (spine_bone_data) _self->getBone(); } -void spine_slider_data_set_bone(spine_slider_data self, spine_bone_data bone) { +void spine_slider_data_set_bone(spine_slider_data self, /*@null*/ spine_bone_data bone) { SliderData *_self = (SliderData *) self; _self->setBone((BoneData *) bone); } -spine_from_property spine_slider_data_get_property(spine_slider_data self) { +/*@null*/ spine_from_property spine_slider_data_get_property(spine_slider_data self) { SliderData *_self = (SliderData *) self; return (spine_from_property) _self->getProperty(); } -void spine_slider_data_set_property(spine_slider_data self, spine_from_property property) { +void spine_slider_data_set_property(spine_slider_data self, /*@null*/ spine_from_property property) { SliderData *_self = (SliderData *) self; _self->setProperty((FromProperty *) property); } diff --git a/spine-c/src/generated/slider_data.h b/spine-c/src/generated/slider_data.h index 13a5564f7..ccf7018ed 100644 --- a/spine-c/src/generated/slider_data.h +++ b/spine-c/src/generated/slider_data.h @@ -21,10 +21,10 @@ SPINE_C_API bool spine_slider_data_get_additive(spine_slider_data self); SPINE_C_API void spine_slider_data_set_additive(spine_slider_data self, bool additive); SPINE_C_API bool spine_slider_data_get_loop(spine_slider_data self); SPINE_C_API void spine_slider_data_set_loop(spine_slider_data self, bool loop); -SPINE_C_API spine_bone_data spine_slider_data_get_bone(spine_slider_data self); -SPINE_C_API void spine_slider_data_set_bone(spine_slider_data self, spine_bone_data bone); -SPINE_C_API spine_from_property spine_slider_data_get_property(spine_slider_data self); -SPINE_C_API void spine_slider_data_set_property(spine_slider_data self, spine_from_property property); +SPINE_C_API /*@null*/ spine_bone_data spine_slider_data_get_bone(spine_slider_data self); +SPINE_C_API void spine_slider_data_set_bone(spine_slider_data self, /*@null*/ spine_bone_data bone); +SPINE_C_API /*@null*/ spine_from_property spine_slider_data_get_property(spine_slider_data self); +SPINE_C_API void spine_slider_data_set_property(spine_slider_data self, /*@null*/ spine_from_property property); SPINE_C_API float spine_slider_data_get_scale(spine_slider_data self); SPINE_C_API void spine_slider_data_set_scale(spine_slider_data self, float scale); SPINE_C_API float spine_slider_data_get_offset(spine_slider_data self); diff --git a/spine-c/src/generated/slider_mix_timeline.cpp b/spine-c/src/generated/slider_mix_timeline.cpp index 31ce32a1b..99b3cd122 100644 --- a/spine-c/src/generated/slider_mix_timeline.cpp +++ b/spine-c/src/generated/slider_mix_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_slider_mix_timeline_get_rtti(spine_slider_mix_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_slider_mix_timeline_apply(spine_slider_mix_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_slider_mix_timeline_apply(spine_slider_mix_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { SliderMixTimeline *_self = (SliderMixTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/slider_mix_timeline.h b/spine-c/src/generated/slider_mix_timeline.h index 1605f35b8..6874ba1ca 100644 --- a/spine-c/src/generated/slider_mix_timeline.h +++ b/spine-c/src/generated/slider_mix_timeline.h @@ -15,8 +15,8 @@ SPINE_C_API void spine_slider_mix_timeline_dispose(spine_slider_mix_timeline sel SPINE_C_API spine_rtti spine_slider_mix_timeline_get_rtti(spine_slider_mix_timeline self); SPINE_C_API void spine_slider_mix_timeline_apply(spine_slider_mix_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_slider_mix_timeline_get_constraint_index(spine_slider_mix_timeline self); SPINE_C_API void spine_slider_mix_timeline_set_constraint_index(spine_slider_mix_timeline self, int inValue); SPINE_C_API void spine_slider_mix_timeline_set_frame(spine_slider_mix_timeline self, size_t frame, float time, float value); diff --git a/spine-c/src/generated/slider_timeline.cpp b/spine-c/src/generated/slider_timeline.cpp index 95624c2de..4755055cf 100644 --- a/spine-c/src/generated/slider_timeline.cpp +++ b/spine-c/src/generated/slider_timeline.cpp @@ -16,7 +16,7 @@ spine_rtti spine_slider_timeline_get_rtti(spine_slider_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_slider_timeline_apply(spine_slider_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +void spine_slider_timeline_apply(spine_slider_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { SliderTimeline *_self = (SliderTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/slider_timeline.h b/spine-c/src/generated/slider_timeline.h index acd89c6b2..26960b74b 100644 --- a/spine-c/src/generated/slider_timeline.h +++ b/spine-c/src/generated/slider_timeline.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_slider_timeline_dispose(spine_slider_timeline self); SPINE_C_API spine_rtti spine_slider_timeline_get_rtti(spine_slider_timeline self); SPINE_C_API void spine_slider_timeline_apply(spine_slider_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_slider_timeline_get_constraint_index(spine_slider_timeline self); SPINE_C_API void spine_slider_timeline_set_constraint_index(spine_slider_timeline self, int inValue); diff --git a/spine-c/src/generated/slot_curve_timeline.cpp b/spine-c/src/generated/slot_curve_timeline.cpp index a9ff10cf1..abeb622cc 100644 --- a/spine-c/src/generated/slot_curve_timeline.cpp +++ b/spine-c/src/generated/slot_curve_timeline.cpp @@ -12,8 +12,9 @@ spine_rtti spine_slot_curve_timeline_get_rtti(spine_slot_curve_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_slot_curve_timeline_apply(spine_slot_curve_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_slot_curve_timeline_apply(spine_slot_curve_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { SlotCurveTimeline *_self = (SlotCurveTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/slot_curve_timeline.h b/spine-c/src/generated/slot_curve_timeline.h index 71b9fe4bc..0839988f8 100644 --- a/spine-c/src/generated/slot_curve_timeline.h +++ b/spine-c/src/generated/slot_curve_timeline.h @@ -13,8 +13,8 @@ SPINE_C_API void spine_slot_curve_timeline_dispose(spine_slot_curve_timeline sel SPINE_C_API spine_rtti spine_slot_curve_timeline_get_rtti(spine_slot_curve_timeline self); SPINE_C_API void spine_slot_curve_timeline_apply(spine_slot_curve_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_slot_curve_timeline_get_slot_index(spine_slot_curve_timeline self); SPINE_C_API void spine_slot_curve_timeline_set_slot_index(spine_slot_curve_timeline self, int inValue); SPINE_C_API void spine_slot_curve_timeline_set_linear(spine_slot_curve_timeline self, size_t frame); diff --git a/spine-c/src/generated/slot_pose.cpp b/spine-c/src/generated/slot_pose.cpp index dc5464634..590933082 100644 --- a/spine-c/src/generated/slot_pose.cpp +++ b/spine-c/src/generated/slot_pose.cpp @@ -36,12 +36,12 @@ void spine_slot_pose_set_has_dark_color(spine_slot_pose self, bool hasDarkColor) _self->setHasDarkColor(hasDarkColor); } -spine_attachment spine_slot_pose_get_attachment(spine_slot_pose self) { +/*@null*/ spine_attachment spine_slot_pose_get_attachment(spine_slot_pose self) { SlotPose *_self = (SlotPose *) self; return (spine_attachment) _self->getAttachment(); } -void spine_slot_pose_set_attachment(spine_slot_pose self, spine_attachment attachment) { +void spine_slot_pose_set_attachment(spine_slot_pose self, /*@null*/ spine_attachment attachment) { SlotPose *_self = (SlotPose *) self; _self->setAttachment((Attachment *) attachment); } diff --git a/spine-c/src/generated/slot_pose.h b/spine-c/src/generated/slot_pose.h index bc5364c0f..183856139 100644 --- a/spine-c/src/generated/slot_pose.h +++ b/spine-c/src/generated/slot_pose.h @@ -18,8 +18,8 @@ SPINE_C_API spine_color spine_slot_pose_get_color(spine_slot_pose self); SPINE_C_API spine_color spine_slot_pose_get_dark_color(spine_slot_pose self); SPINE_C_API bool spine_slot_pose_has_dark_color(spine_slot_pose self); SPINE_C_API void spine_slot_pose_set_has_dark_color(spine_slot_pose self, bool hasDarkColor); -SPINE_C_API spine_attachment spine_slot_pose_get_attachment(spine_slot_pose self); -SPINE_C_API void spine_slot_pose_set_attachment(spine_slot_pose self, spine_attachment attachment); +SPINE_C_API /*@null*/ spine_attachment spine_slot_pose_get_attachment(spine_slot_pose self); +SPINE_C_API void spine_slot_pose_set_attachment(spine_slot_pose self, /*@null*/ spine_attachment attachment); SPINE_C_API int spine_slot_pose_get_sequence_index(spine_slot_pose self); SPINE_C_API void spine_slot_pose_set_sequence_index(spine_slot_pose self, int sequenceIndex); SPINE_C_API spine_array_float spine_slot_pose_get_deform(spine_slot_pose self); diff --git a/spine-c/src/generated/timeline.cpp b/spine-c/src/generated/timeline.cpp index 715c4c023..f7e6a930a 100644 --- a/spine-c/src/generated/timeline.cpp +++ b/spine-c/src/generated/timeline.cpp @@ -12,7 +12,7 @@ spine_rtti spine_timeline_get_rtti(spine_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_timeline_apply(spine_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, float alpha, +void spine_timeline_apply(spine_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { Timeline *_self = (Timeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/timeline.h b/spine-c/src/generated/timeline.h index cfd9d7f81..3b4930915 100644 --- a/spine-c/src/generated/timeline.h +++ b/spine-c/src/generated/timeline.h @@ -12,7 +12,7 @@ extern "C" { SPINE_C_API void spine_timeline_dispose(spine_timeline self); SPINE_C_API spine_rtti spine_timeline_get_rtti(spine_timeline self); -SPINE_C_API void spine_timeline_apply(spine_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, +SPINE_C_API void spine_timeline_apply(spine_timeline self, spine_skeleton skeleton, float lastTime, float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API size_t spine_timeline_get_frame_entries(spine_timeline self); SPINE_C_API size_t spine_timeline_get_frame_count(spine_timeline self); diff --git a/spine-c/src/generated/track_entry.cpp b/spine-c/src/generated/track_entry.cpp index 77089c7c4..fe78b838a 100644 --- a/spine-c/src/generated/track_entry.cpp +++ b/spine-c/src/generated/track_entry.cpp @@ -26,7 +26,7 @@ void spine_track_entry_set_animation(spine_track_entry self, spine_animation ani _self->setAnimation(*((Animation *) animation)); } -spine_track_entry spine_track_entry_get_previous(spine_track_entry self) { +/*@null*/ spine_track_entry spine_track_entry_get_previous(spine_track_entry self) { TrackEntry *_self = (TrackEntry *) self; return (spine_track_entry) _self->getPrevious(); } @@ -196,7 +196,7 @@ void spine_track_entry_set_mix_draw_order_threshold(spine_track_entry self, floa _self->setMixDrawOrderThreshold(inValue); } -spine_track_entry spine_track_entry_get_next(spine_track_entry self) { +/*@null*/ spine_track_entry spine_track_entry_get_next(spine_track_entry self) { TrackEntry *_self = (TrackEntry *) self; return (spine_track_entry) _self->getNext(); } @@ -241,12 +241,12 @@ void spine_track_entry_set_mix_blend(spine_track_entry self, spine_mix_blend ble _self->setMixBlend((MixBlend) blend); } -spine_track_entry spine_track_entry_get_mixing_from(spine_track_entry self) { +/*@null*/ spine_track_entry spine_track_entry_get_mixing_from(spine_track_entry self) { TrackEntry *_self = (TrackEntry *) self; return (spine_track_entry) _self->getMixingFrom(); } -spine_track_entry spine_track_entry_get_mixing_to(spine_track_entry self) { +/*@null*/ spine_track_entry spine_track_entry_get_mixing_to(spine_track_entry self) { TrackEntry *_self = (TrackEntry *) self; return (spine_track_entry) _self->getMixingTo(); } @@ -276,7 +276,7 @@ bool spine_track_entry_is_next_ready(spine_track_entry self) { return _self->isNextReady(); } -void *spine_track_entry_get_renderer_object(spine_track_entry self) { +/*@null*/ void *spine_track_entry_get_renderer_object(spine_track_entry self) { HasRendererObject *_self = (HasRendererObject *) (TrackEntry *) self; return _self->getRendererObject(); } diff --git a/spine-c/src/generated/track_entry.h b/spine-c/src/generated/track_entry.h index 935dc090e..7124da6e1 100644 --- a/spine-c/src/generated/track_entry.h +++ b/spine-c/src/generated/track_entry.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_track_entry_dispose(spine_track_entry self); SPINE_C_API int spine_track_entry_get_track_index(spine_track_entry self); SPINE_C_API spine_animation spine_track_entry_get_animation(spine_track_entry self); SPINE_C_API void spine_track_entry_set_animation(spine_track_entry self, spine_animation animation); -SPINE_C_API spine_track_entry spine_track_entry_get_previous(spine_track_entry self); +SPINE_C_API /*@null*/ spine_track_entry spine_track_entry_get_previous(spine_track_entry self); SPINE_C_API bool spine_track_entry_get_loop(spine_track_entry self); SPINE_C_API void spine_track_entry_set_loop(spine_track_entry self, bool inValue); SPINE_C_API bool spine_track_entry_get_hold_previous(spine_track_entry self); @@ -50,7 +50,7 @@ SPINE_C_API float spine_track_entry_get_alpha_attachment_threshold(spine_track_e SPINE_C_API void spine_track_entry_set_alpha_attachment_threshold(spine_track_entry self, float inValue); SPINE_C_API float spine_track_entry_get_mix_draw_order_threshold(spine_track_entry self); SPINE_C_API void spine_track_entry_set_mix_draw_order_threshold(spine_track_entry self, float inValue); -SPINE_C_API spine_track_entry spine_track_entry_get_next(spine_track_entry self); +SPINE_C_API /*@null*/ spine_track_entry spine_track_entry_get_next(spine_track_entry self); SPINE_C_API bool spine_track_entry_is_complete(spine_track_entry self); SPINE_C_API float spine_track_entry_get_mix_time(spine_track_entry self); SPINE_C_API void spine_track_entry_set_mix_time(spine_track_entry self, float inValue); @@ -59,14 +59,14 @@ SPINE_C_API void spine_track_entry_set_mix_duration_1(spine_track_entry self, fl SPINE_C_API void spine_track_entry_set_mix_duration_2(spine_track_entry self, float mixDuration, float delay); SPINE_C_API spine_mix_blend spine_track_entry_get_mix_blend(spine_track_entry self); SPINE_C_API void spine_track_entry_set_mix_blend(spine_track_entry self, spine_mix_blend blend); -SPINE_C_API spine_track_entry spine_track_entry_get_mixing_from(spine_track_entry self); -SPINE_C_API spine_track_entry spine_track_entry_get_mixing_to(spine_track_entry self); +SPINE_C_API /*@null*/ spine_track_entry spine_track_entry_get_mixing_from(spine_track_entry self); +SPINE_C_API /*@null*/ spine_track_entry spine_track_entry_get_mixing_to(spine_track_entry self); SPINE_C_API void spine_track_entry_reset_rotation_directions(spine_track_entry self); SPINE_C_API float spine_track_entry_get_track_complete(spine_track_entry self); SPINE_C_API bool spine_track_entry_is_empty_animation(spine_track_entry self); SPINE_C_API bool spine_track_entry_was_applied(spine_track_entry self); SPINE_C_API bool spine_track_entry_is_next_ready(spine_track_entry self); -SPINE_C_API void *spine_track_entry_get_renderer_object(spine_track_entry self); +SPINE_C_API /*@null*/ void *spine_track_entry_get_renderer_object(spine_track_entry self); #ifdef __cplusplus } diff --git a/spine-c/src/generated/transform_constraint.cpp b/spine-c/src/generated/transform_constraint.cpp index 7921b718f..51168438c 100644 --- a/spine-c/src/generated/transform_constraint.cpp +++ b/spine-c/src/generated/transform_constraint.cpp @@ -36,7 +36,7 @@ bool spine_transform_constraint_is_source_active(spine_transform_constraint self return _self->isSourceActive(); } -spine_array_bone_pose spine_transform_constraint_get_bones(spine_transform_constraint self) { +/*@null*/ spine_array_bone_pose spine_transform_constraint_get_bones(spine_transform_constraint self) { TransformConstraint *_self = (TransformConstraint *) self; return (spine_array_bone_pose) &_self->getBones(); } diff --git a/spine-c/src/generated/transform_constraint.h b/spine-c/src/generated/transform_constraint.h index ed6a98ba8..7e28c0990 100644 --- a/spine-c/src/generated/transform_constraint.h +++ b/spine-c/src/generated/transform_constraint.h @@ -18,7 +18,7 @@ SPINE_C_API spine_transform_constraint spine_transform_constraint_copy(spine_tra SPINE_C_API void spine_transform_constraint_update(spine_transform_constraint self, spine_skeleton skeleton, spine_physics physics); SPINE_C_API void spine_transform_constraint_sort(spine_transform_constraint self, spine_skeleton skeleton); SPINE_C_API bool spine_transform_constraint_is_source_active(spine_transform_constraint self); -SPINE_C_API spine_array_bone_pose spine_transform_constraint_get_bones(spine_transform_constraint self); +SPINE_C_API /*@null*/ spine_array_bone_pose spine_transform_constraint_get_bones(spine_transform_constraint self); SPINE_C_API spine_bone spine_transform_constraint_get_source(spine_transform_constraint self); SPINE_C_API void spine_transform_constraint_set_source(spine_transform_constraint self, spine_bone source); SPINE_C_API spine_transform_constraint_data spine_transform_constraint_get_data(spine_transform_constraint self); diff --git a/spine-c/src/generated/transform_constraint_data.cpp b/spine-c/src/generated/transform_constraint_data.cpp index 24e15985b..1ebad6a6b 100644 --- a/spine-c/src/generated/transform_constraint_data.cpp +++ b/spine-c/src/generated/transform_constraint_data.cpp @@ -21,7 +21,7 @@ spine_constraint spine_transform_constraint_data_create_method(spine_transform_c return (spine_constraint) &_self->create(*((Skeleton *) skeleton)); } -spine_array_bone_data spine_transform_constraint_data_get_bones(spine_transform_constraint_data self) { +/*@null*/ spine_array_bone_data spine_transform_constraint_data_get_bones(spine_transform_constraint_data self) { TransformConstraintData *_self = (TransformConstraintData *) self; return (spine_array_bone_data) &_self->getBones(); } @@ -136,7 +136,7 @@ void spine_transform_constraint_data_set_clamp(spine_transform_constraint_data s _self->setClamp(clamp); } -spine_array_from_property spine_transform_constraint_data_get_properties(spine_transform_constraint_data self) { +/*@null*/ spine_array_from_property spine_transform_constraint_data_get_properties(spine_transform_constraint_data self) { TransformConstraintData *_self = (TransformConstraintData *) self; return (spine_array_from_property) &_self->getProperties(); } diff --git a/spine-c/src/generated/transform_constraint_data.h b/spine-c/src/generated/transform_constraint_data.h index 7d5ddc38e..dcec34df4 100644 --- a/spine-c/src/generated/transform_constraint_data.h +++ b/spine-c/src/generated/transform_constraint_data.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_transform_constraint_data_dispose(spine_transform_constra SPINE_C_API spine_rtti spine_transform_constraint_data_get_rtti(spine_transform_constraint_data self); SPINE_C_API spine_constraint spine_transform_constraint_data_create_method(spine_transform_constraint_data self, spine_skeleton skeleton); -SPINE_C_API spine_array_bone_data spine_transform_constraint_data_get_bones(spine_transform_constraint_data self); +SPINE_C_API /*@null*/ spine_array_bone_data spine_transform_constraint_data_get_bones(spine_transform_constraint_data self); SPINE_C_API spine_bone_data spine_transform_constraint_data_get_source(spine_transform_constraint_data self); SPINE_C_API void spine_transform_constraint_data_set_source(spine_transform_constraint_data self, spine_bone_data source); SPINE_C_API float spine_transform_constraint_data_get_offset_rotation(spine_transform_constraint_data self); @@ -38,7 +38,7 @@ SPINE_C_API bool spine_transform_constraint_data_get_additive(spine_transform_co SPINE_C_API void spine_transform_constraint_data_set_additive(spine_transform_constraint_data self, bool additive); SPINE_C_API bool spine_transform_constraint_data_get_clamp(spine_transform_constraint_data self); SPINE_C_API void spine_transform_constraint_data_set_clamp(spine_transform_constraint_data self, bool clamp); -SPINE_C_API spine_array_from_property spine_transform_constraint_data_get_properties(spine_transform_constraint_data self); +SPINE_C_API /*@null*/ spine_array_from_property spine_transform_constraint_data_get_properties(spine_transform_constraint_data self); SPINE_C_API const char *spine_transform_constraint_data_get_name(spine_transform_constraint_data self); SPINE_C_API bool spine_transform_constraint_data_get_skin_required(spine_transform_constraint_data self); SPINE_C_API spine_transform_constraint_pose spine_transform_constraint_data_get_setup_pose(spine_transform_constraint_data self); diff --git a/spine-c/src/generated/transform_constraint_timeline.cpp b/spine-c/src/generated/transform_constraint_timeline.cpp index aafea8e6e..59db7f27c 100644 --- a/spine-c/src/generated/transform_constraint_timeline.cpp +++ b/spine-c/src/generated/transform_constraint_timeline.cpp @@ -18,7 +18,7 @@ spine_rtti spine_transform_constraint_timeline_get_rtti(spine_transform_constrai } void spine_transform_constraint_timeline_apply(spine_transform_constraint_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { TransformConstraintTimeline *_self = (TransformConstraintTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, diff --git a/spine-c/src/generated/transform_constraint_timeline.h b/spine-c/src/generated/transform_constraint_timeline.h index 94f800962..ad7d49ff9 100644 --- a/spine-c/src/generated/transform_constraint_timeline.h +++ b/spine-c/src/generated/transform_constraint_timeline.h @@ -16,7 +16,7 @@ SPINE_C_API void spine_transform_constraint_timeline_dispose(spine_transform_con SPINE_C_API spine_rtti spine_transform_constraint_timeline_get_rtti(spine_transform_constraint_timeline self); SPINE_C_API void spine_transform_constraint_timeline_apply(spine_transform_constraint_timeline self, spine_skeleton skeleton, float lastTime, - float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, + float time, /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); SPINE_C_API void spine_transform_constraint_timeline_set_frame(spine_transform_constraint_timeline self, int frame, float time, float mixRotate, float mixX, float mixY, float mixScaleX, float mixScaleY, float mixShearY); diff --git a/spine-c/src/generated/translate_timeline.cpp b/spine-c/src/generated/translate_timeline.cpp index 0d8f2ecae..f46029990 100644 --- a/spine-c/src/generated/translate_timeline.cpp +++ b/spine-c/src/generated/translate_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_translate_timeline_get_rtti(spine_translate_timeline self) { return (spine_rtti) &_self->getRTTI(); } -void spine_translate_timeline_apply(spine_translate_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_translate_timeline_apply(spine_translate_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { BoneTimeline2 *_self = (BoneTimeline2 *) (TranslateTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/translate_timeline.h b/spine-c/src/generated/translate_timeline.h index cd5b13a01..8a276f7a4 100644 --- a/spine-c/src/generated/translate_timeline.h +++ b/spine-c/src/generated/translate_timeline.h @@ -15,8 +15,8 @@ SPINE_C_API void spine_translate_timeline_dispose(spine_translate_timeline self) SPINE_C_API spine_rtti spine_translate_timeline_get_rtti(spine_translate_timeline self); SPINE_C_API void spine_translate_timeline_apply(spine_translate_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_translate_timeline_get_bone_index(spine_translate_timeline self); SPINE_C_API void spine_translate_timeline_set_bone_index(spine_translate_timeline self, int inValue); SPINE_C_API void spine_translate_timeline_set_frame(spine_translate_timeline self, size_t frame, float time, float value1, float value2); diff --git a/spine-c/src/generated/translate_x_timeline.cpp b/spine-c/src/generated/translate_x_timeline.cpp index 8fa76809c..22500510b 100644 --- a/spine-c/src/generated/translate_x_timeline.cpp +++ b/spine-c/src/generated/translate_x_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_translate_x_timeline_get_rtti(spine_translate_x_timeline self) return (spine_rtti) &_self->getRTTI(); } -void spine_translate_x_timeline_apply(spine_translate_x_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_translate_x_timeline_apply(spine_translate_x_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { BoneTimeline1 *_self = (BoneTimeline1 *) (TranslateXTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/translate_x_timeline.h b/spine-c/src/generated/translate_x_timeline.h index 61f6dd64a..d7a8709ef 100644 --- a/spine-c/src/generated/translate_x_timeline.h +++ b/spine-c/src/generated/translate_x_timeline.h @@ -15,8 +15,8 @@ SPINE_C_API void spine_translate_x_timeline_dispose(spine_translate_x_timeline s SPINE_C_API spine_rtti spine_translate_x_timeline_get_rtti(spine_translate_x_timeline self); SPINE_C_API void spine_translate_x_timeline_apply(spine_translate_x_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_translate_x_timeline_get_bone_index(spine_translate_x_timeline self); SPINE_C_API void spine_translate_x_timeline_set_bone_index(spine_translate_x_timeline self, int inValue); SPINE_C_API void spine_translate_x_timeline_set_frame(spine_translate_x_timeline self, size_t frame, float time, float value); diff --git a/spine-c/src/generated/translate_y_timeline.cpp b/spine-c/src/generated/translate_y_timeline.cpp index b36562435..c022b1b38 100644 --- a/spine-c/src/generated/translate_y_timeline.cpp +++ b/spine-c/src/generated/translate_y_timeline.cpp @@ -16,8 +16,9 @@ spine_rtti spine_translate_y_timeline_get_rtti(spine_translate_y_timeline self) return (spine_rtti) &_self->getRTTI(); } -void spine_translate_y_timeline_apply(spine_translate_y_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, - float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose) { +void spine_translate_y_timeline_apply(spine_translate_y_timeline self, spine_skeleton skeleton, float lastTime, float time, + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, + bool appliedPose) { BoneTimeline1 *_self = (BoneTimeline1 *) (TranslateYTimeline *) self; _self->apply(*((Skeleton *) skeleton), lastTime, time, (Array *) pEvents, alpha, (MixBlend) blend, (MixDirection) direction, appliedPose); diff --git a/spine-c/src/generated/translate_y_timeline.h b/spine-c/src/generated/translate_y_timeline.h index 24ae95dd3..038d2e996 100644 --- a/spine-c/src/generated/translate_y_timeline.h +++ b/spine-c/src/generated/translate_y_timeline.h @@ -15,8 +15,8 @@ SPINE_C_API void spine_translate_y_timeline_dispose(spine_translate_y_timeline s SPINE_C_API spine_rtti spine_translate_y_timeline_get_rtti(spine_translate_y_timeline self); SPINE_C_API void spine_translate_y_timeline_apply(spine_translate_y_timeline self, spine_skeleton skeleton, float lastTime, float time, - spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, - bool appliedPose); + /*@null*/ spine_array_event pEvents, float alpha, spine_mix_blend blend, + spine_mix_direction direction, bool appliedPose); SPINE_C_API int spine_translate_y_timeline_get_bone_index(spine_translate_y_timeline self); SPINE_C_API void spine_translate_y_timeline_set_bone_index(spine_translate_y_timeline self, int inValue); SPINE_C_API void spine_translate_y_timeline_set_frame(spine_translate_y_timeline self, size_t frame, float time, float value); diff --git a/spine-c/src/generated/vertex_attachment.cpp b/spine-c/src/generated/vertex_attachment.cpp index 77c38d208..9d1aea708 100644 --- a/spine-c/src/generated/vertex_attachment.cpp +++ b/spine-c/src/generated/vertex_attachment.cpp @@ -13,7 +13,7 @@ spine_rtti spine_vertex_attachment_get_rtti(spine_vertex_attachment self) { } void spine_vertex_attachment_compute_world_vertices_1(spine_vertex_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, - size_t count, float *worldVertices, size_t offset, size_t stride) { + size_t count, /*@null*/ float *worldVertices, size_t offset, size_t stride) { VertexAttachment *_self = (VertexAttachment *) self; _self->computeWorldVertices(*((Skeleton *) skeleton), *((Slot *) slot), start, count, worldVertices, offset, stride); } @@ -59,12 +59,12 @@ void spine_vertex_attachment_set_world_vertices_length(spine_vertex_attachment s _self->setWorldVerticesLength(inValue); } -spine_attachment spine_vertex_attachment_get_timeline_attachment(spine_vertex_attachment self) { +/*@null*/ spine_attachment spine_vertex_attachment_get_timeline_attachment(spine_vertex_attachment self) { VertexAttachment *_self = (VertexAttachment *) self; return (spine_attachment) _self->getTimelineAttachment(); } -void spine_vertex_attachment_set_timeline_attachment(spine_vertex_attachment self, spine_attachment attachment) { +void spine_vertex_attachment_set_timeline_attachment(spine_vertex_attachment self, /*@null*/ spine_attachment attachment) { VertexAttachment *_self = (VertexAttachment *) self; _self->setTimelineAttachment((Attachment *) attachment); } diff --git a/spine-c/src/generated/vertex_attachment.h b/spine-c/src/generated/vertex_attachment.h index f206e9515..09319e74c 100644 --- a/spine-c/src/generated/vertex_attachment.h +++ b/spine-c/src/generated/vertex_attachment.h @@ -13,7 +13,8 @@ SPINE_C_API void spine_vertex_attachment_dispose(spine_vertex_attachment self); SPINE_C_API spine_rtti spine_vertex_attachment_get_rtti(spine_vertex_attachment self); SPINE_C_API void spine_vertex_attachment_compute_world_vertices_1(spine_vertex_attachment self, spine_skeleton skeleton, spine_slot slot, - size_t start, size_t count, float *worldVertices, size_t offset, size_t stride); + size_t start, size_t count, /*@null*/ float *worldVertices, size_t offset, + size_t stride); SPINE_C_API void spine_vertex_attachment_compute_world_vertices_2(spine_vertex_attachment self, spine_skeleton skeleton, spine_slot slot, size_t start, size_t count, spine_array_float worldVertices, size_t offset, size_t stride); @@ -24,8 +25,8 @@ SPINE_C_API spine_array_float spine_vertex_attachment_get_vertices(spine_vertex_ SPINE_C_API void spine_vertex_attachment_set_vertices(spine_vertex_attachment self, spine_array_float vertices); SPINE_C_API size_t spine_vertex_attachment_get_world_vertices_length(spine_vertex_attachment self); SPINE_C_API void spine_vertex_attachment_set_world_vertices_length(spine_vertex_attachment self, size_t inValue); -SPINE_C_API spine_attachment spine_vertex_attachment_get_timeline_attachment(spine_vertex_attachment self); -SPINE_C_API void spine_vertex_attachment_set_timeline_attachment(spine_vertex_attachment self, spine_attachment attachment); +SPINE_C_API /*@null*/ spine_attachment spine_vertex_attachment_get_timeline_attachment(spine_vertex_attachment self); +SPINE_C_API void spine_vertex_attachment_set_timeline_attachment(spine_vertex_attachment self, /*@null*/ spine_attachment attachment); SPINE_C_API void spine_vertex_attachment_copy_to(spine_vertex_attachment self, spine_vertex_attachment other); SPINE_C_API const char *spine_vertex_attachment_get_name(spine_vertex_attachment self); SPINE_C_API spine_attachment spine_vertex_attachment_copy(spine_vertex_attachment self); diff --git a/spine-c/tests/headless-test.c b/spine-c/tests/headless-test.c index f004368d9..e096ae0e1 100644 --- a/spine-c/tests/headless-test.c +++ b/spine-c/tests/headless-test.c @@ -240,7 +240,7 @@ int main(int argc, char *argv[]) { spine_animation_state_apply(state, skeleton); } - spine_skeleton_update_world_transform_1(skeleton, SPINE_PHYSICS_UPDATE); + spine_skeleton_update_world_transform(skeleton, SPINE_PHYSICS_UPDATE); // Print skeleton state printf("\n=== SKELETON STATE ===\n");