Skip to content

Instantly share code, notes, and snippets.

View ionoy's full-sized avatar

Mihhail Maslakov ionoy

  • Estonia
View GitHub Profile
this.ReturnInt = function() {
var _N_T_temp_var_1 = "__lbl__1";
__gotoSwitchLoop: while(true) {
switch(_N_T_temp_var_1) {
case __lbl__23:
var __returnValue;
_N_T_temp_var_1 = "__lbl__3";
continue __gotoSwitchLoop;;;
break;
macro HandleOnce(eventName, eventArgs, body)
syntax ("handle", eventName, eventArgs, "once", body)
{
HandleImpl.OnceImpl(eventName, eventArgs, body);
}
macro Handle(eventName, eventArgs, body)
syntax ("handle", eventName, eventArgs, body)
{
HandleImpl.Impl(eventName, eventArgs, body);
handle mousedown(down) {
handle mousemove(move) until mouseup {
....
}
}
handle keydown(k0) {
if(k0 == 'a') {
handle once keydown(k1) {
if(k1 == 'b') {
[Unit]
class Draggable
{
public OffsetX : int { get; set; }
public OffsetY : int { get; set; }
public this(moveHandler = null, downHandler = null, upHandler = null)
{}
public Handler() : void
{
{
{
{
def _var5 = template(TourneyList, _ .View)
};
when (
{
def _var7 = TourneyList.Selected != null;
TourneyList.Selected != null