Skip to content

Commit 298ce40

Browse files
ImageDataUtil: Let the docs build type the flat prims' field addresses
The docs are built for each native target with doc_gen, where DataPointer has no conversion from cpp.Pointer, so NativeImageDataUtil's address of the fields failed to type and the docs failed to build. With doc_gen it is 0, as DataPointer.fromBytesPointer is there. No code is generated in that build.
1 parent f6c74fa commit 298ce40

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/lime/_internal/backend/native/NativeImageDataUtil.hx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,12 @@ class NativeImageDataUtil
176176

177177
@:noCompletion private static inline function __address(fields:RawPointer<Int>):DataPointer
178178
{
179+
// The docs are built without DataPointer's conversions from cpp.Pointer
180+
#if doc_gen
181+
return 0;
182+
#else
179183
return DataPointer.fromPointer(Pointer.fromRaw(fields));
184+
#end
180185
}
181186

182187
/**

0 commit comments

Comments
 (0)