This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function.prototype.argNames = function () { | |
// Extract function string representation: hopefully we can count on it ? | |
var s = this.toString(); | |
// The cool thing is: this can only be a syntactically valid function declaration | |
s = s // "function name (a, b, c) { body }" | |
.substring( // "a, b, c" | |
s.indexOf('(')+1, // ----------------^ | |
s.indexOf(')') // ------^ | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void resumePlugin(AEffect *plugin) { | |
dispatcher(plugin, effMainsChanged, 0, 1, NULL, 0.0f); | |
} | |
void suspendPlugin(AEffect *plugin) { | |
dispatcher(plugin, effMainsChanged, 0, 0, NULL, 0.0f); | |
} |