I am trying to write a javascript program that can be called from either WScript or a browser (embedded in html). Many javascript functions are independent of the type of caller, but not the debugging functions, such as "window.write" or "WScript.alert".
I am aware that javascript functions can determine the name of their caller, but n...
Is there a way to find out if the calling function had attributes set on it?
[RunOnPlatformB]
int blah()
{
return boo();
}
int boo()
{
// can i find out if RunOnPlatformB was set on my caller?
}
...
How can I forward macros between nmake invocations from callee to caller?
It's the reverse of what I was asking here:
nmake - how to forward macros between nmake invocations?
...
In compiler design, why instead of having a caller or callee register saving arrangement, couldn't the caller pass its list of used registers (that it would push in case of a caller saving arrangement) to the callee so that the callee can compare its list of used registers to the registers used by the caller. Then only the registers that...
I need to get a list of all caller methods for a method of interest for me in Java. Is there a tool that can help me with this?
Edit: I forgot to mention that I need to do this from a program. I'm usig Java Pathfinder and I want to run it an all the methods that call my method of interest.
...
as simple as i can:
i have a WCF service with a private constructor. if i'm not wrong, constructors must be parameterless in WCF and the parameter i need is the caller's name (or caller's method name), so i can assign a few readonly fields.
so, the question is: is there a way that i can get the caller's name -- or the method that invok...
Hello, very often i see code written from others, and when browsing over a function i want to see where this function is called from. Even when i debug my own code, i'd find it a useful feature:P
In c++ this feature is default in visual studio(its called browse-something), but i havent found any such thing for VB.NET yet, any ideas?
...
I am using the following for getting the JavaScript caller function name:
var callerFunc = arguments.callee.caller.toString();
callerFuncName = (callerFunc.substring(callerFunc.indexOf("function") + 8, callerFunc.indexOf("(")) || "anoynmous")
Is there a way to discover the line number from which the method was called?
Also, is there ...
Is there a way to determine the line of code a certain method was called from? I
...
How can you get the data type of a variable argument in Java if the varg is set to null? I use the getClass to retrieve the type. Is there any other way?
public void method(String name, Object ... vargs)
{
for(Object arg : vargs)
{
mapType.put(arg.getClass());
mapVal.put(arg);
}
}
The only thing i could thi...
I can't believe this has proven sooo ellusive to find even a single example of ANYWHERE (I have googled the CRAP out of this!) but can anyone show me how to do basic Caller ID detection in a Mac app? ...preferrably Cocoa but will be willing to go Carbon if I must? Now I'm not looking for a full-on telephony API example although again, ...
Hi!
how do i find in XCode all caller functions of a specific function?
Thanks!x
...
I'm trying to refactor a fairly hefty view function in Django. There are too many variables floating around and it's a huge function.
Ideally, I want to modularize the view into logical functions.
However, I have to pass the function context around to get easy access to the variables.
For example,
def complex_view(request, slug):
...
I am trying to have the function vbsme call another function called sad... is the following procedure correct about saving the registers and return address?? the caller is supposed to save register $t0-$t7, but where and how should I do that?
vbsme: li $v0, 0 # reset $v0
li $v1, 0 # reset $v1
li $t0, 1 # i(row) = 1 ...
Is it possible to get the this that a function's caller was called with in JavaScript without passing this to the arguments in a way which supports IE as well as Firefox/Chrome et al?
For example:
var ob = {
callme: function() {
doSomething();
}
}
ob.callme();
function doSomething() {
alert(doSomething.caller.this...
Is it possible to retrieve the URL of a 3rd party webservice calling my controller method?
Things like Request.Current.Url refer to my own URL (/someController/someAction/).
The 3rd party webservice is sending HTTP POST data to my /someController/someAction and I wish to send back a HTTP POST message to the caller of the method, the 3r...
I know that directly setting a variable in the scope of caller is probably not a good idea.
However, the PHP extract() function does exactly that! I would like to write my over version of extract() but cannot figure out how to actually go about setting the variables in the caller. Any ideas?
The closest I have come is modifying the calle...
Is it possible to read bytes directly from modem or phone line without losing any info?
If use SerialPort after ringing nothing happened on ReceiveData event!
I want to read caller id info directly from line. My modem doesn't support Caller Id!
...
I have a native android library (.so) I am bundling with some application. In the native code I want to verify the signer/package name of the calling application.
The reason is, currently anyone can open up the .apk file take my .so file and use it to built their own applications.
Is there a way to securely identify the calling applica...
Hello,
My PayPal Direct script works perfect on my machine. Both nUnit tests and via a website on localhost. However this first line of code fails on my server and another server. (both full trust)
CallerServices caller = new CallerServices();
Message: The type initializer for 'com.paypal.sdk.core.soap.SOAPAPICaller' threw an exceptio...