Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
release.c File Reference

Implements the OP_PCSC_RELEASE opcode (conditional build). More...

Go to the source code of this file.

Functions

 free_value (vid)
 push_value (vm, make_int(0))

Variables

case OP_PCSC_RELEASE
 break

Detailed Description

Implements the OP_PCSC_RELEASE opcode (conditional build).

Releases a previously established PC/SC context and frees its registry slot. When PCSC support is disabled at build time, this opcode returns 0 after consuming its argument.

Definition in file release.c.

Function Documentation

◆ free_value()

free_value(vid)

◆ push_value()

push_value(vm,
make_int(0) )

Variable Documentation

◆ break

break

Definition at line 46 of file release.c.

◆ OP_PCSC_RELEASE

case OP_PCSC_RELEASE

OP_PCSC_RELEASE: (ctx_id:int) -> int

  • Pops: ctx_id.
  • Pushes: 1 on success; 0 on error (invalid id/not found) or when disabled.

Definition at line 27 of file release.c.