Fun 0.41.5
The programming language that makes you have fun!
Loading...
Searching...
No Matches
close.c File Reference

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

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 free_value (vh)
 if (h &&h->db)
 push_value (vm, make_nil())

Variables

case OP_SQLITE_CLOSE
int hid = (int)vh.i
SqlHandleh = sql_reg_get(hid)
 break

Detailed Description

Implements the OP_SQLITE_CLOSE opcode (conditional build).

Closes a registered SQLite database handle and unregisters it when FUN_WITH_SQLITE is enabled. No-op when SQLite support is disabled.

OP_SQLITE_CLOSE: (handle:int) -> Nil

Definition in file close.c.

Function Documentation

◆ free_value()

free_value ( vh )

◆ if()

if ( h &&h-> db)

Definition at line 26 of file close.c.

◆ push_value()

push_value ( vm ,
make_nil()  )

Variable Documentation

◆ break

break

Definition at line 37 of file close.c.

◆ h

Definition at line 25 of file close.c.

◆ hid

int hid = (int)vh.i

Definition at line 23 of file close.c.

◆ OP_SQLITE_CLOSE

case OP_SQLITE_CLOSE

Definition at line 20 of file close.c.