Metatables

getnamecallmethod

현재 호출되고 있는 namecall 메소드를 반환합니다.

문법

getnamecallmethod(): string | nil
별칭 get_namecall_method

반환값

이름타입설명
methodstring | nil현재 이름 호출 방법 또는 이름 호출 처리 외부에서는 nil입니다.

설명

현재 호출되고 있는 namecall 메소드를 반환합니다.

파라미터 없이 호출합니다. 함수는 현재 runtime 상태에서 필요한 context를 읽습니다.

method (string | nil)을 반환합니다. 반환 표를 사용해 성공 값, nil 결과, 복구 가능한 오류를 구분하세요.

예제

자리 표시자 값을 사용하는 예제 호출입니다.

local result = getnamecallmethod()
print(result)