Skip to content

Commit

Permalink
Some cleanup to fix linux build
Browse files Browse the repository at this point in the history
Former-commit-id: 81e5746
  • Loading branch information
vadzz-dev committed Jan 9, 2021
1 parent a02f379 commit b908969
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/bindings/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static void GetPlayersByName(const v8::FunctionCallbackInfo<v8::Value>& info)

static void GetNetTime(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();

uint32_t netTime = alt::ICore::Instance().GetNetTime();

Expand Down
12 changes: 6 additions & 6 deletions src/bindings/VoiceChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using namespace alt;

static void AddPlayer(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_CHECK_ARGS_LEN(1);
V8_GET_THIS_BASE_OBJECT(channel, IVoiceChannel);

Expand All @@ -18,7 +18,7 @@ static void AddPlayer(const v8::FunctionCallbackInfo<v8::Value>& info)

static void RemovePlayer(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_CHECK_ARGS_LEN(1);
V8_GET_THIS_BASE_OBJECT(channel, IVoiceChannel);

Expand All @@ -29,7 +29,7 @@ static void RemovePlayer(const v8::FunctionCallbackInfo<v8::Value>& info)

static void IsPlayerInChannel(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_CHECK_ARGS_LEN(1);
V8_GET_THIS_BASE_OBJECT(channel, IVoiceChannel);

Expand All @@ -40,7 +40,7 @@ static void IsPlayerInChannel(const v8::FunctionCallbackInfo<v8::Value>& info)

static void MutePlayer(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_CHECK_ARGS_LEN(1);
V8_GET_THIS_BASE_OBJECT(channel, IVoiceChannel);

Expand All @@ -51,7 +51,7 @@ static void MutePlayer(const v8::FunctionCallbackInfo<v8::Value>& info)

static void UnmutePlayer(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_CHECK_ARGS_LEN(1);
V8_GET_THIS_BASE_OBJECT(channel, IVoiceChannel);

Expand All @@ -62,7 +62,7 @@ static void UnmutePlayer(const v8::FunctionCallbackInfo<v8::Value>& info)

static void IsPlayerMuted(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_CHECK_ARGS_LEN(1);
V8_GET_THIS_BASE_OBJECT(channel, IVoiceChannel);

Expand Down
2 changes: 1 addition & 1 deletion src/bindings/vehicle/Appearance.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ namespace V8::Vehicle

void GetAppearanceData(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_GET_THIS_BASE_OBJECT(vehicle, IVehicle);

V8_RETURN_STRING(vehicle->GetAppearanceDataBase64().CStr());
Expand Down
6 changes: 3 additions & 3 deletions src/bindings/vehicle/Damage.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace V8::Vehicle

void HasArmoredWindowsGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_GET_THIS_BASE_OBJECT(vehicle, IVehicle);

V8_RETURN_BOOLEAN(vehicle->HasArmoredWindows());
Expand Down Expand Up @@ -207,15 +207,15 @@ namespace V8::Vehicle

void GetDamageStatus(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_GET_THIS_BASE_OBJECT(vehicle, IVehicle);

V8_RETURN_STRING(vehicle->GetDamageDataBase64().CStr());
}

void SetFixed(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_GET_THIS_BASE_OBJECT(vehicle, IVehicle);

vehicle->SetFixed();
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/vehicle/GameState.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace V8::Vehicle

void GetGamestateData(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_GET_THIS_BASE_OBJECT(vehicle, IVehicle);

V8_RETURN_STRING(vehicle->GetGameStateBase64().CStr());
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/vehicle/Health.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ namespace V8::Vehicle

void GetHealthData(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE(info);
V8_GET_ISOLATE();
V8_GET_THIS_BASE_OBJECT(vehicle, IVehicle);

V8_RETURN_STRING(vehicle->GetHealthDataBase64().CStr());
Expand Down
2 changes: 1 addition & 1 deletion src/helpers

0 comments on commit b908969

Please sign in to comment.