mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 23:00:15 +00:00
Fix the type of the invoke function in the block ABI documentation
rdar://problem/67892794
This commit is contained in:
parent
8760048384
commit
64bb582f4a
@ -35,7 +35,8 @@ High Level
|
||||
==========
|
||||
|
||||
The ABI of ``Blocks`` consist of their layout and the runtime functions required
|
||||
by the compiler. A ``Block`` consists of a structure of the following form:
|
||||
by the compiler. A ``Block`` of type ``R (^)(P...)`` consists of a structure of
|
||||
the following form:
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
@ -43,7 +44,7 @@ by the compiler. A ``Block`` consists of a structure of the following form:
|
||||
void *isa; // initialized to &_NSConcreteStackBlock or &_NSConcreteGlobalBlock
|
||||
int flags;
|
||||
int reserved;
|
||||
void (*invoke)(void *, ...);
|
||||
R (*invoke)(struct Block_literal_1 *, P...);
|
||||
struct Block_descriptor_1 {
|
||||
unsigned long int reserved; // NULL
|
||||
unsigned long int size; // sizeof(struct Block_literal_1)
|
||||
|
Loading…
Reference in New Issue
Block a user