Ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
Macros | Functions
Context.c File Reference
#include "Context.h"
#include <stdint.h>

Go to the source code of this file.

Macros

#define __asm__   asm
 

Functions

 __attribute__ ((noinline))
 
int coroutine_save_stack (struct coroutine_context *context)
 
 __attribute__ ((noreturn, noinline))
 
 __attribute__ ((noreturn))
 
struct coroutine_contextcoroutine_transfer (struct coroutine_context *current, struct coroutine_context *target)
 

Macro Definition Documentation

◆ __asm__

#define __asm__   asm

Definition at line 14 of file Context.c.

Function Documentation

◆ __attribute__() [1/3]

__attribute__ ( (noinline)  )

Definition at line 40 of file Context.c.

◆ __attribute__() [2/3]

__attribute__ ( (noreturn)  )

Definition at line 117 of file Context.c.

References alloca, assert, coroutine_context::base, NULL, and coroutine_context::used.

◆ __attribute__() [3/3]

__attribute__ ( (noreturn, noinline)  )

Definition at line 88 of file Context.c.

References assert, and coroutine_context::base.

◆ coroutine_save_stack()

int coroutine_save_stack ( struct coroutine_context context)

Definition at line 78 of file Context.c.

References _setjmp(), and coroutine_context::state.

Referenced by coroutine_transfer().

◆ coroutine_transfer()

struct coroutine_context * coroutine_transfer ( struct coroutine_context current,
struct coroutine_context target 
)