You are currently viewing the gmlscripts.pro static mirror. Forum access and script submissions are not available through this mirror.

Invert gmlscripts.pro

bit_set

bits = 229;              //  bits == 229 (11100101)
bits = bit_set(bits,4);  //  bits == 245 (11110101)
bit_set(bitfield,bit)
Returns a given bitfield with a given bit set to 1.
COPY/// bit_set(bitfield,bit)
//
//  Returns a given bitfield with a given bit set to 1.
//
//      bitfield    number or group of bits, integer
//      bit         bit index to change, integer
//
/// gmlscripts.pro/license
{
    return argument0 | (1 << argument1);
}

Contributors: xot

GitHub: View · Commits · Blame · Raw